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

[Translations] added translations to admin user form #7431

Merged

Conversation

kwedrowicz
Copy link

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related tickets
License MIT

Hi,
it's simple commit adding translations to admin user form (firstName and lastName fields, which was hardcoded earlier).

->add('firstName', null, [
'label' => 'sylius.ui.first_name'
])
->add('lastName', null, [
Copy link
Member

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'
Copy link
Member

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.

@kwedrowicz
Copy link
Author

@Zales0123 , thanks. Improved according to your review.

->add('firstName')
->add('lastName')
->add('firstName', TextType::class, [
'label' => 'sylius.ui.first_name',
Copy link
Member

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.

Copy link
Author

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.

Copy link
Member

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. :)

@kwedrowicz
Copy link
Author

@pjedrzejewski I changed translations according to your comments. Could you rerun travis? The failed test shouldn't have anything in common with my commit.

@michalmarcinkowski
Copy link
Contributor

Restarted the build.

@kwedrowicz
Copy link
Author

@pjedrzejewski I think this pr is ready now 😄

@michalmarcinkowski michalmarcinkowski merged commit 6804a5c into Sylius:master Feb 10, 2017
@michalmarcinkowski
Copy link
Contributor

Thanks Krzysztof!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants