Lucas_Werkmeister_WMDE added a comment.
In T341409#9162199 <https://phabricator.wikimedia.org/T341409#9162199>, @Nikki wrote: > In T341409#9148879 <https://phabricator.wikimedia.org/T341409#9148879>, @Lucas_Werkmeister_WMDE wrote: > >>> - This would make another 230+ languages available, reducing the number of languages we have to dump under `mis` (related: T289776 <https://phabricator.wikimedia.org/T289776>) >> >> And if T168799: Integrate IANA language registry with language-data and MediaWiki (let MediaWiki "knows" all languages with ISO 639-1/2/3 codes) <https://phabricator.wikimedia.org/T168799> happens, that would take us the rest of the way to T289776: Enable all ISO 639-3 codes on Wikidata <https://phabricator.wikimedia.org/T289776>, right? > > I don't know. Does T289776 <https://phabricator.wikimedia.org/T289776> include labels or not? Hm, unclear. But it’s a good point that this task is not supposed to include labels, since a simple implementation of it (like I was playing around with earlier) would affect labels as well; I’ve added that to the task description. >> The additional cldr language codes are only added when asking for language names in a specific language, and the returned language codes vary slightly depending on which language you ask for: >> [...] >> (`de` and `bar` have additionally `en-uk`, with `bar` presumably inheriting it from `de` via language fallback; `pt`’s extra language code is `az-arab`.) I assume we always want to request the same language here, rather than make this depend on the user / request language; should it be the wiki content language (`en` on Wikidata), a hard-coded one (e.g. `en` or `qqq`), or something else? > > Hm, that doesn't sound good. Is that actually a bug in the CLDR extension? I would expect the set of language codes to be the same regardless of the language being used and that not being the case sounds like it would cause problems eventually. Perhaps it should have tests to make sure none of the files have extra codes that don't exist for English, or perhaps it should ignore any codes that aren't defined for all languages? Making the extension translatable would help here too, I imagine. Yeah, that should probably be fixed in the cldr extension. But I’ve convinced myself now that we should ask for the `en` language names, so as far as I’m concerned this variation is no longer a problem for Wikibase ^^ TASK DETAIL https://phabricator.wikimedia.org/T341409 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Michael, ItamarWMDE, Bugreporter, thiemowmde, Lucas_Werkmeister_WMDE, jhsoby, Amire80, Lydia_Pintscher, Manuel, mrephabricator, Nikki, Danny_Benjafield_WMDE, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, srishakatux, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org