Page MenuHomePhabricator

Remove UILangCode/Translatewiki.net Magic from translatewiki
Closed, ResolvedPublic4 Estimated Story Points

Description

Since MediaWiki core provided this feature in T4085: Add a {{USERLANGUAGE}} magic word. However we need to replace all current usage of {{UILANGCODE}} in translatewiki first.

(After this we should archive UILangCode extension, which will be another task.)

Event Timeline

Change #1074251 had a related patch set uploaded (by Jon Harald Søby; author: Jon Harald Søby):

[translatewiki@master] Enable $wgParserEnableUserLanguage

https://gerrit.wikimedia.org/r/1074251

Nikerabbit set the point value for this task to 4.
Nikerabbit moved this task from Backlog to System admin stuff on the translatewiki.net board.

Change #1074251 merged by jenkins-bot:

[translatewiki@master] Enable $wgParserEnableUserLanguage

https://gerrit.wikimedia.org/r/1074251

However we need to replace all current usage of {{UILANGCODE}} in translatewiki first.

Actually, it shouldn’t be (have been) necessary: simply creating https://translatewiki.net/wiki/Template:UILANGCODE with the content {{USERLANGUAGE}} could make pages (including old revisions!) readable after the custom Translatewiki solution is removed.

(After this we should archive UILangCode extension, which will be another task.)

We should, but as far as I see, it isn’t related to the Translatewiki changes at all (so there doesn’t need to be any before/after relation): I still see rGTWN mw-config/nikext.php, from which rEULC was forked, but I don’t see wfLoadExtension('UILangCode') in the rGTWN repo – apparently the separate extension was created, but never installed on Translatewiki.

Change #1080234 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[translatewiki@master] Remove nikext

https://gerrit.wikimedia.org/r/1080234

Change #1080234 merged by jenkins-bot:

[translatewiki@master] Remove nikext

https://gerrit.wikimedia.org/r/1080234