Language::isWellFormedLanguageTag() – Checks whether the language tag is well formed. Like isKnownLanguageTag but less tight and more flexible. Would accept non-sense stuff like fi-Cyrl-JA-x-foo that semantically makes no sense but is valid according to the rules.
See http://laxstrom.name/blag/2012/08/28/language-validation-in-mediawiki/ for background; see also bug 41476, bug 41477.
Version: unspecified
Severity: enhancement
URL: http://laxstrom.name/blag/2012/08/28/language-validation-in-mediawiki/