-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Translations] added translations to admin user form #7431
[Translations] added translations to admin user form #7431
Conversation
->add('firstName', null, [ | ||
'label' => 'sylius.ui.first_name' | ||
]) | ||
->add('lastName', null, [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this and above be TextType::class
?
'label' => 'sylius.ui.first_name' | ||
]) | ||
->add('lastName', null, [ | ||
'label' => 'sylius.ui.last_name' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing comma at the end of line. As well as above.
a200e4b
to
882957f
Compare
@Zales0123 , thanks. Improved according to your review. |
->add('firstName') | ||
->add('lastName') | ||
->add('firstName', TextType::class, [ | ||
'label' => 'sylius.ui.first_name', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have separate set of translation keys for forms - this should be: sylius.form.admin_user.first_name
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pjedrzejewski Are you sure? I see sylius.form.user.first_name
but no sylius.form.admin_user.first_name
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, should be sylius.form.user.first_name
. :)
882957f
to
3414bad
Compare
@pjedrzejewski I changed translations according to your comments. Could you rerun travis? The failed test shouldn't have anything in common with my commit. |
Restarted the build. |
@pjedrzejewski I think this pr is ready now 😄 |
Thanks Krzysztof! |
Hi,
it's simple commit adding translations to admin user form (firstName and lastName fields, which was hardcoded earlier).