Lucas_Werkmeister_WMDE added subscribers: Raymond, Lucas_Werkmeister_WMDE. Lucas_Werkmeister_WMDE added a comment.
In T124758#4126411 <https://phabricator.wikimedia.org/T124758#4126411>, thiemowmde wrote: > A temporary workaround could be to add the additional language codes to the list of suggested languages. These entries would only show the code, but no language name. That's obviously far from perfect, but much better than nothing. Have a look at the JavaScript class wikibase.WikibaseContentLanguages. It currently simply returns the #universallanguageselector <https://phabricator.wikimedia.org/tag/universallanguageselector/>'s language list, but excludes a few that are also excluded in the backend (see WikibaseRepo::getMonolingualTextLanguages). This means there is already some duplication going on in the backend and frontend! This duplication could either be expanded, or resolved by introducing a #mediawiki-resourceloader <https://phabricator.wikimedia.org/tag/mediawiki-resourceloader/> module that returns the list of languages allowed in monolingual values. A list of monolingual language codes is now available, though not as a ResourceLoader module, but via the action API, as `meta=wbcontentlanguages`. And as far as I can tell, we actually have English names for all those languages: $ curl -G -s \ -d action=query \ -d meta=wbcontentlanguages \ -d wbclcontext=monolingualtext \ -d wbclprop='code|name' \ -d format=json \ -d formatversion=2 \ https://www.wikidata.org/w/api.php | \ jq -c '.query.wbcontentlanguages | .[] | select(.name == null)' | \ wc -l 0 It looks like @Raymond periodically adds them to our CLDR MediaWiki extension, as an addition to the upstream CLDR data (example change <https://gerrit.wikimedia.org/r/506153>). I don’t know why they’re not displayed on the monolingual statements themselves (example statement <https://www.wikidata.org/wiki/Q204274#P2561>, currently shows “sjn” instead of “Sindarin”), but we seem to have them in some form or other. (I guess this also answers @Sascha’s last question?) TASK DETAIL https://phabricator.wikimedia.org/T124758 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Lucas_Werkmeister_WMDE, Raymond, NoInkling, WMDE-leszek, Nemo_bis, Sascha, Mvolz, Tarrow, Michael, Timothyjosephwood, Zache, Nikerabbit, gerritbot, Lea_Lacroix_WMDE, Amire80, Lokal_Profil, Lydia_Pintscher, Charlie_WMDE, Sjoerddebruin, C933103, Liuxinyu970226, iecetcwcpggwqpgciazwvzpfjpwomjxn, Nikki, Jonas, daniel, Tobi_WMDE_SW, adrianheine, Aklapper, darthmon_wmde, alaa_wmde, joker88john, DannyS712, CucyNoiD, Nandana, NebulousIris, Gaboe420, A.S.Kochergin, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, JGirault, Wikidata-bugs, aude, Arrbee, santhosh, KartikMistry, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
