Page MenuHomePhabricator

Create a parser function to get the BCP47 code for a language
Closed, ResolvedPublic

Description

See T359761: Create a parser function to get the direction of a language or script and T310581: Make LanguageCode::bcp47() available in Lua.

This proposes {{#bcp47|sr-ec}} to yield (eg) sr-Cyrl.

Event Timeline

Change #1038879 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Add {{#bcp47}} parser function

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

Change #1038879 merged by jenkins-bot:

[mediawiki/core@master] Add {{#bcp47}} parser function

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

Working with @Ebrahim, we got most of the uses of c:Template:BCP47 replaced with #bcp47 parser function, at least in template namespace. Number of transclusions still listing just under 5M.

The code seem to be deployed and working. All places using the the template version on Commons were replaced with the parser function, and the template was deprecated. I think it is time to close this task