wikimedia / ToolforgeBundle

A Symfony 4 & 5 bundle that provides some common parts of web-based tools running on Wikimedia's Toolforge. Maintained by the Wikimedia Foundation's Community Tech team.
https://packagist.org/packages/wikimedia/toolforge-bundle
GNU General Public License v3.0
13 stars 4 forks source link

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

Closed samwilson closed 2 years ago

samwilson commented 2 years ago

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