Verdy_p added a comment.

The issue i see is that to add a name in a given langauge, it must still be supported in the Universal langauge selector or by using "?uselang=" parameter, so that we can give it a label.
We annot add any label in Wikidata in a language that is not selectable as the user language, so a minimal support for MediaWiki localisation is needed so that the language becomes "supported" and not just "valid" (accorrding to BCP47 rules, as currently implemetned with ICU's library used to check it). It seems that the languages Lua module to implement and check validity is not used there and there's no workaround for missing locales in MediaWiki "support".
IOdeally Wikidata should not depend on this MediaWiki support because we actually don't need this supprot for creating a MediaWiki UI, but only to enter labels for Wikidata. This is a limitation of the Wikidata UI which incorrectly assumes such Mediawiki support is needed: there's no way to add an additional "custom" (but valid) BCP47 locale code to associate a label to a Qnnn entry: the "more" languages buttons requires us to select a supported locale so that the input form will propose a field to fill in. Probably we could still add it in Wikidata, but not with the current Wikidata UI, only via its API (this would require some privilege to submit data via the API and bypass the validation currently performed by Wikidata's UI).


TASK DETAIL
https://phabricator.wikimedia.org/T165648

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Verdy_p
Cc: MF-Warburg, Liuxinyu970226, Lydia_Pintscher, Verdy_p, gerritbot, Amire80, Nikki, jhsoby, GerardM, Baba_Tabita, Aklapper, Esc3300, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, Maathavan, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to