Page MenuHomePhabricator

API:SiteMatrix should contain the IETF language tag (the "lang") of the wiki
Closed, ResolvedPublic

Description

Problem
If you have a IETF language tag like lzh the only way to figure out that the Wikimedia language code for that language is to query the siteinfo of every site in the matrix and get the lang attribute. Doing this would inform you that zh-classical is the wikimedia language code.

Solution
Add the lang (from the siteinfo) for each wiki to the SiteMatrix API. This could also be added to the special page (just for "other"?) to resolve T167825

Event Timeline

dbarratt renamed this task from SiteMatrix should contain the IETF language tag (the "lang") of the wiki to API:SiteMatrix should contain the IETF language tag (the "lang") of the wiki.Sep 5 2018, 2:24 PM
dbarratt updated the task description. (Show Details)

Change 458926 had a related patch set uploaded (by Dbarratt; owner: Dbarratt):
[mediawiki/extensions/SiteMatrix@master] SiteMatrix should contain the IETF language tag (the "lang") of the wiki

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

Change 458926 merged by jenkins-bot:
[mediawiki/extensions/SiteMatrix@master] SiteMatrix should contain the IETF language tag (the "lang") of the wiki

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

Krinkle claimed this task.