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

[Translation] Fix for translation:update command updating ICU messages #36505

Conversation

artemoliynyk
Copy link
Contributor

@artemoliynyk artemoliynyk commented Apr 20, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #36459
License MIT

If translation:update command executed with option --domain=messages – it  ignore messages-intl-icu file and just create new messages

Method TranslationUpdateCommand::filterCatalogue() on MessageCatalogue::all() method to get all messages for domain
But MessageCatalogue::all() method disredard intl-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

@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Apr 21, 2020
@artemoliynyk artemoliynyk marked this pull request as draft April 22, 2020 10:06
@artemoliynyk artemoliynyk marked this pull request as ready for review April 22, 2020 10:38
@artemoliynyk
Copy link
Contributor Author

Travis build fails on Symfony\Bundle\FrameworkBundle\Tests\Functional\MailerTest::testMailerAssertions() test, but it's OK for me on local setup.
I believe this is unrelated erro to this PR

Copy link
Member

@nicolas-grekas nicolas-grekas left a 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.

@nicolas-grekas nicolas-grekas changed the base branch from 5.0 to 4.4 April 30, 2020 18:05
@nicolas-grekas nicolas-grekas force-pushed the bug_36459-translation-update-ignore-inlt-icu branch from 284ea74 to 567cee5 Compare April 30, 2020 18:05
Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !

@fabpot
Copy link
Member

fabpot commented May 3, 2020

Thank you @artemoliynyk.

@fabpot fabpot merged commit a5ae434 into symfony:4.4 May 3, 2020
This was referenced May 31, 2020
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.

None yet

5 participants