Page MenuHomePhabricator

Sitenotice is always displayed in site language, never translated although translations exist
Open, LowPublicFeature

Description

Sitenotice is always displayed in site language, never displayed translated (when user has different language set or using uselang= parameter in URL query) although translations exist.

It seems to me this behavior is a relict from fundraiser central notice, IIRC translations for sitenotice worked before it.


Version: unspecified
Severity: enhancement

Details

Reference
bz13647

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:07 PM
bzimport set Reference to bz13647.
bzimport added a subscriber: Unknown Object (MLST).

Actually, the fundraiser's central notice is the *only* sitenotice implementation we've had that used the user's language. :)

Since we're currently *not* using it, it's back to the heavily cached local notice which uses the content language.

Isn't this either bug 1495 or siblings or just a use case for [[mw:Help:Extension:Translate/Unstructured_element_translation]]?

$wgForceUIMsgAsContentMsg can be used as a workaround.

bewikimedia make use of this to make the sitenotice display the translations.

  1. https://be.wikimedia.org/wiki/Special:PrefixIndex/Mediawiki:Sitenotice
  2. https://be.wikimedia.org/wiki/Wikimedia_Belgium?uselang=de
Nemo_bis set Security to None.

Should we add sitenotice to $wgForceUIMsgAsContentMsg on all wikis by default?

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.