Closed Hanmac closed 2 years ago
The label change was introduced with sonata admin v4. The change was introduced 5 years(!) ago: https://github.com/sonata-project/SonataAdminBundle/pull/4028/files#diff-8d1178f0f37fbd2ac6511e658b40b274507b08416352e5d09da99826512c588fR74
IMHO we should keep the label strategy and change the label inside the translation files. Keep in mind that the stable release supports sonata admin v3 and v4.
E.g this line should be changed to general
and the corresponding label would be show.group_general
:
https://github.com/nucleos/NucleosUserAdminBundle/blob/e2503629d63860cf7f60e7a276f17a4da838a153/src/Admin/Model/UserAdmin.php#L139
E.g this line should be changed to
general
and the corresponding label would beshow.group_general
:
yeah i think this should be the preferred solution. So the Translations doesn't need to be touched
Environment
Packages
PHP version
Subject
Steps to reproduce
open Admin User Form
Expected results
Actual results
Nucleos UserAdmin Bundle uses this Stategy:
But this causes the label
form.group_general
to be transformed intoform.group_form_group_general
and this causes the shipped Translations to fail.Possible Solutions is: