| Jonas added a comment. |
Interestingly
<lang>
falls back to English but
⧼lang⧽not.
Also Language class has interesting special features
protected static function newFromCode( $code, $fallback = false ) { if ( !self::isValidCode( $code ) ) { throw new MWException( "Invalid language code \"$code\"" ); } if ( !self::isValidBuiltInCode( $code ) ) { // It's not possible to customise this code with class files, so // just return a Language object. This is to support uselang= hacks. $lang = new Language; $lang->setCode( $code ); return $lang; }Whatever uselang=hacks is ...
TASK DETAIL
EMAIL PREFERENCES
To: Jonas
Cc: TerraCodes, Liuxinyu970226, Lucas_Werkmeister_WMDE, Lydia_Pintscher, gerritbot, Addshore, WMDE-leszek, Aklapper, Krinkle, Nandana, NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, Maathavan, Jonas, Wikidata-bugs, aude, Jdforrester-WMF, Mbch331, Jay8g, Krenair
Cc: TerraCodes, Liuxinyu970226, Lucas_Werkmeister_WMDE, Lydia_Pintscher, gerritbot, Addshore, WMDE-leszek, Aklapper, Krinkle, Nandana, NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, Maathavan, Jonas, Wikidata-bugs, aude, Jdforrester-WMF, Mbch331, Jay8g, Krenair
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
