Page MenuHomePhabricator

Enable $wgParserEnableUserLanguage on all wikis with Translate enabled
Open, Needs TriagePublic

Description

See T4085: Add a {{USERLANGUAGE}} magic word

See here for list of wikis: https://noc.wikimedia.org/conf/highlight.php?file=dblists/translate.dblist

This will include most multilingual wikis such as Wikidata.

Event Timeline

  • Most multilingual wikis contains some modules using {{int:lang}} (example, example). Note there are also mechanism to switch languages besides the Translate extension, such as LangSwitch or AutoTranslate modules in search results above.
  • For wikis with translate, it is possible that pages are in different languages ($wgPageLanguageUseDB), i.e. different from page view languages.

Many wikis including MediaWiki.org and Wkidata have some sorts of int:lang hack, and in MediaWiki.org case, it is not set up properly. Usage of such hacks should be discouraged.

(by the way, my ideal solution is remove $wgParserEnableUserLanguage completely and always enable this magic word - there is no performance drawback if it is enabled but not used, but it is out of scope of this task.)