-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Translation] Fix for translation:update command updating ICU messages #36505
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
[Translation] Fix for translation:update command updating ICU messages #36505
Conversation
|
Travis build fails on |
nicolas-grekas
left a comment
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.
Thanks, here are some remaining minor comments.
src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php
Outdated
Show resolved
Hide resolved
284ea74 to
567cee5
Compare
yceruto
left a comment
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.
Thanks !
|
Thank you @artemoliynyk. |
If
translation:updatecommand executed with option--domain=messages– it ignoremessages-intl-icufile and just create newmessagesMethod
TranslationUpdateCommand::filterCatalogue()onMessageCatalogue::all()method to get all messages for domainBut
MessageCatalogue::all()method disredardintl-icudomains and simply merge all.[Translation] added $strict parameter for MessageCatalogueInterface::all() to be able to get only defined domain messages
[FrameworkBundle] modified translation:update command to respect intl-icu domain