Skip to content

Change Intuition::msg() to check all domains for messages#52

Merged
MusikAnimal merged 1 commit into
masterfrom
use-all-domains
Mar 24, 2022
Merged

Change Intuition::msg() to check all domains for messages#52
MusikAnimal merged 1 commit into
masterfrom
use-all-domains

Conversation

@samwilson
Copy link
Copy Markdown
Member

The bundle comes with some i18n messages, and they've not been usable
via Twig because we've been setting the Intuition domain to only
one value and the bundle's messages are under the 'toolforge' domain.

This change is to loop through all registered domains (i.e. two of
them, in the usual case), and return the first matched message.

Bug: T273840

@dayllanmaza dayllanmaza self-requested a review March 24, 2022 11:10
@samwilson samwilson requested a review from MusikAnimal March 24, 2022 12:02
The bundle comes with some i18n messages, and they've not been usable
via Twig because we've been setting the Intuition domain to only
one value and the bundle's messages are under the 'toolforge' domain.

This change is to loop through all registered domains (i.e. two of
them, in the usual case), and return the first matched message.

Bug: T273840
@MusikAnimal MusikAnimal merged commit 9cb3088 into master Mar 24, 2022
@MusikAnimal MusikAnimal deleted the use-all-domains branch March 24, 2022 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants