Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Translatable subfields does not display flag in label #5704

Open
manfield opened this issue Oct 22, 2024 · 0 comments
Open

[Bug] Translatable subfields does not display flag in label #5704

manfield opened this issue Oct 22, 2024 · 0 comments
Labels

Comments

@manfield
Copy link

manfield commented Oct 22, 2024

Bug report

What I did

When creating a relationship type, using subfields, i.e:

 [
                'label'     => trans('custom.attachments'),
                'name'  => 'attachment_blocks',
                'type' => 'relationship',
                'tab' =>  trans('custom.attachments'),
                'force_delete'  => true,
                'subfields' => [
                    [
                        'name' => 'label',
                        'label' => trans('custom.label'),
                        'type' => 'text'
                    ],

fields defined as translatable in the relation model and listed as subfields don't show the translation flag on the label.

Example of the translation flag
image

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

### PHP VERSION:
8.3.9

### PHP EXTENSIONS:
Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, ast, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, igbinary, intl, exif, msgpack, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, memcached, Zend OPcache, xdebug

### LARAVEL VERSION:
11.23.5.0

### BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.3.6
backpack/crud: 6.7.41
backpack/devtools: 3.1.6
backpack/generators: v4.0.6
backpack/language-switcher: 2.0.0
backpack/medialibrary-uploaders: 1.2.1
backpack/permissionmanager: 7.2.1
backpack/pro: 2.2.21
backpack/settings: 3.1.1
backpack/theme-tabler: 1.2.13
backpack/translation-manager: 1.0.4
@manfield manfield changed the title [Bug] Translatable subfields does not display flag [Bug] Translatable subfields does not display flag in label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant