Add BCP 47 redirects for non-standard MediaWiki language codes#498
Add BCP 47 redirects for non-standard MediaWiki language codes#498HakanIST wants to merge 1 commit intowikimedia:masterfrom
Conversation
MediaWiki core maps several non-standard wiki language codes to standard BCP 47 codes in HTML lang= attributes (via LanguageCode.php). The Universal Language Selector reads these lang attributes but cannot find the BCP 47 codes in the language database, causing those languages to be silently dropped from the Vector 2022 language sidebar. Add redirects for the 4 missing BCP 47 codes: - jv-x-bms -> map-bms (Basa Banyumasan) - nap-x-tara -> roa-tara (Tarandíne) - nrf -> nrm (Nouormand) - ro-cyrl-md -> mo (Moldovan) Bug: T391575
|
We don't want non-standard codes in language-data. |
|
Thanks for the quick feedback, @Nikerabbit! Just to clarify: the codes being added here ( I also noticed that the ULS rewrite ( What would be the preferred approach here? |
|
Thanks for the feedback @Nikerabbit. After further investigation, adding redirects in |
MediaWiki core maps several non-standard wiki language codes to standard BCP 47 codes in HTML
lang=attributes (viaLanguageCode.php). The Universal Language Selector reads theselangattributes but cannot find the BCP 47 codes in the language database, causing those languages to be silently dropped from the Vector 2022 language sidebar.This adds redirects for the 4 missing BCP 47 codes:
jv-x-bms→map-bms(Basa Banyumasan)nap-x-tara→roa-tara(Tarandíne)nrf→nrm(Nouormand)ro-cyrl-md→mo(Moldovan)Bug: https://phabricator.wikimedia.org/T391575