Page MenuHomePhabricator

Language converter doesn't convert {{SITENAME}} in interface messages when variants are selected
Open, Needs TriagePublic

Description

Applies to any use of a messages using {{SITENAME}} in the interface, but not in the content/when visiting the MediaWiki: namespaces message pages themselves. This results in weird inconsistencies, such as the site banner in some skins not being converted (CologneBlue, Example), and the tagline, despite the rest of the interface being converted around it, as well as the entirety of the content itself.

See: https://sr.wikipedia.org/w/index.php?title=Главна_страна&variant=sr-el&useskin=cologneblue (latin variant serbian):

image.png (320×744 px, 77 KB)

Timeless works around this by forcibly passing the banner message (which also defaults to {{SITENAME}}) through language->convert skin-side. Similarly, srwp has separate tagline messages for each language variant, none of which use {{SITENAME}}, to ensure they display correctly was well. None of this should be necessary.

Event Timeline

I would expect {{SITENAME}} being handled by $wgSitename , but I haven't seen any implementation about language variants on it, and it seems zhwiki now use custom MediaWiki system messages to fix each usage.