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] prefer intl domain when adding messages to catalogue #35370

Closed
wants to merge 6 commits into from
Closed

Conversation

Guite
Copy link
Contributor

@Guite Guite commented Jan 17, 2020

Q A
Branch? 5.0
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

This PR ensures that when adding translations to a catalogue using the add(array $messages, string $domain = 'messages') method internally the intl icu domain is checked first.

Otherwise it could happen that existing messages in e.g. messages+intl-icu are not updated but the same keys are added to messages.

@Guite Guite changed the title prefer intl message domain prefer intl message domain when adding messages to translation catalogue Jan 17, 2020
@Guite Guite changed the title prefer intl message domain when adding messages to translation catalogue [Translation] prefer intl domain when adding messages to catalogue Jan 17, 2020
@nicolas-grekas
Copy link
Member

If this is a bug fix, I suppose it should target a lower branch?
Can you add a test case also?

@Guite
Copy link
Contributor Author

Guite commented Jan 20, 2020

If this is a bug fix, I suppose it should target a lower branch?

Should I target 4.4 then? Because in 3.4 there is no icu support at all (e.g. no MessageCatalogueInterface::INTL_DOMAIN_SUFFIX constant).

Can you add a test case also?

I will try, but it may take a little while.

@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Jan 21, 2020
@Guite Guite changed the base branch from 5.0 to 4.4 January 22, 2020 08:25
@Guite Guite changed the base branch from 4.4 to 5.0 January 22, 2020 08:25
@Guite
Copy link
Contributor Author

Guite commented Jan 22, 2020

Closing in favour of #35430 which targets 4.4.

@Guite Guite closed this Jan 22, 2020
fabpot added a commit that referenced this pull request Feb 3, 2020
…atalogue (Guite)

This PR was squashed before being merged into the 4.4 branch (closes #35430).

Discussion
----------

[Translation] prefer intl domain when adding messages to catalogue

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

This PR ensures that when adding translations to a catalogue using the `add(array $messages, string $domain = 'messages')` method internally the intl icu domain is checked first.

Otherwise it could happen that existing messages in e.g. `messages+intl-icu` are not updated but the same keys are added to `messages`.

This is a follow-up of #35370, now targeting the `4.4` branch.

Commits
-------

b72b7d3 [Translation] prefer intl domain when adding messages to catalogue
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

4 participants