-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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 |
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
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:update
command executed with option--domain=messages
– it ignoremessages-intl-icu
file and just create newmessages
Method
TranslationUpdateCommand::filterCatalogue()
onMessageCatalogue::all()
method to get all messages for domainBut
MessageCatalogue::all()
method disredardintl-icu
domains 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