Page MenuHomePhabricator

Support and require BCP 47 tags in <langconvert> arguments
Closed, ResolvedPublic


Currently the new <langconvert> tag (T263082) uses MediaWiki internal language codes rather than BCP 47 codes. In most but not all cases these codes are the same. <langconvert> should be fixed so that it accepts BCP 47 codes such as sr-Cyrl and rejects internal codes such as sr-ec.

I'm going to work on this and submit a patch soon. It shouldn't be too hard but I want to be careful to cover all of the edge cases.

Related Objects

Event Timeline

Change 655525 had a related patch set uploaded (by David Kamholz; owner: David Kamholz):
[mediawiki/core@master] Rewrite <langconvert> to support BCP 47 tags

Change 655525 merged by jenkins-bot:
[mediawiki/core@master] Rewrite <langconvert> to support BCP 47 tags

Merged and deployed back in 2021.