Skip to content

[Validator] Improve UserPassword message #11383

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

Closed
wants to merge 2 commits into from
Closed

[Validator] Improve UserPassword message #11383

wants to merge 2 commits into from

Conversation

redstar504
Copy link
Contributor

Q A
Fixed tickets None
License MIT

This validator message is not proper English.

@jakzal
Copy link
Contributor

jakzal commented Jul 12, 2014

You should update translations in the same PR. symfony/validator is only a mirror repository.

Also, you need to update the message source in all the translation files (not just English).

@redstar504 redstar504 changed the title Improve UserPassword validator message [Validator] Improve UserPassword message Jul 13, 2014
@redstar504
Copy link
Contributor Author

@jakzal How's that?

@redstar504
Copy link
Contributor Author

Hmm, I don't know why these translation fixes would cause the build to fail so extensively.

Are quotes not allowed in the xlf files?

@fabpot
Copy link
Member

fabpot commented Jul 13, 2014

The problems are not related to your changes, so no worries.

@stof
Copy link
Member

stof commented Jul 13, 2014

changing the source of the translation is a bC break: if a project redefines the translation message or adds another locale, it will not be used anymore after this change. The safe way would be to change it only in the English translation message (this is an advantage of not using the English string as source btw)

@weaverryan
Copy link
Member

@redstar504 Stof is right - I think we will need to change only the english translation. I'm not sure if we can/should break BC, even though I'd love to have the default message be the correct English.

Can someone else back this up to be sure? I don't want to keep making @redstar504 change his PR if we are able to break this translation key BC.

@fabpot
Copy link
Member

fabpot commented Jul 14, 2014

IMO, we should only change the English translation in 2.3 and change the key in master.

@redstar504
Copy link
Contributor Author

Okay in that case this PR is 👍, and I will send separate PR for 2.3?

@fabpot
Copy link
Member

fabpot commented Jul 14, 2014

@redstar504 yes, please.

@redstar504
Copy link
Contributor Author

Okay done in #11387.

fabpot added a commit that referenced this pull request Jul 15, 2014
… (redstar504)

This PR was merged into the 2.3 branch.

Discussion
----------

[2.3] [Validator] Fix UserPassword validator translation

| Q             | A
| ------------- | ---
| Fixed tickets | None
| License       | MIT

Fixes the UserPassword translation message only for 2.3 as discussed in #11383.

Commits
-------

73d50ed Fix UserPassword validator translation
fabpot added a commit to symfony/validator that referenced this pull request Jul 15, 2014
… (redstar504)

This PR was merged into the 2.3 branch.

Discussion
----------

[2.3] [Validator] Fix UserPassword validator translation

| Q             | A
| ------------- | ---
| Fixed tickets | None
| License       | MIT

Fixes the UserPassword translation message only for 2.3 as discussed in symfony/symfony#11383.

Commits
-------

73d50ed Fix UserPassword validator translation
@webmozart
Copy link
Contributor

If I'm not mistaken this can be merged now?

@fabpot
Copy link
Member

fabpot commented Jul 18, 2014

@redstar504 Can you add a note about this "BC break" in the Validator changelog?

@redstar504
Copy link
Contributor Author

Done. @fabpot

@fabpot
Copy link
Member

fabpot commented Jul 23, 2014

👍

@fabpot
Copy link
Member

fabpot commented Jul 23, 2014

Thank you @redstar504.

@fabpot fabpot closed this Jul 23, 2014
fabpot added a commit that referenced this pull request Jul 23, 2014
This PR was squashed before being merged into the 2.6-dev branch (closes #11383).

Discussion
----------

[Validator] Improve UserPassword message

| Q             | A
| ------------- | ---
| Fixed tickets | None
| License       | MIT

This validator message is not proper English.

Commits
-------

d57471e [Validator] Improve UserPassword message
fago pushed a commit to fago/Validator that referenced this pull request Apr 18, 2015
… (redstar504)

This PR was merged into the 2.3 branch.

Discussion
----------

[2.3] [Validator] Fix UserPassword validator translation

| Q             | A
| ------------- | ---
| Fixed tickets | None
| License       | MIT

Fixes the UserPassword translation message only for 2.3 as discussed in symfony/symfony#11383.

Commits
-------

73d50ed Fix UserPassword validator translation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants