Lucas_Werkmeister_WMDE created this task. Lucas_Werkmeister_WMDE added projects: Wikidata, MediaWiki-extensions-WikibaseRepository, I18n, MediaWiki-Configuration. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION New languages for monolingual text values on Wikidata can be defined in two places: in the `wmgExtraLanguageNames` <https://github.com/wikimedia/operations-mediawiki-config/blob/d27493b49013c9919e8d3fd9ed73add080b5d109/wmf-config/InitialiseSettings.php#L19321> setting in the Wikimedia production config repository, which makes them available for terms (labels/descriptions/aliases) as well, or in `WikibaseContentLanguages::getDefaultMonolingualTextLanguages()` <https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/b45e05c44e927937607c114af01bb550d7aa7a88/lib/includes/WikibaseContentLanguages.php#L60>, which doesn’t affect terms but is also effective on third party Wikibase installations. Occasionally, language codes will migrate from only being available in monolingual text to being available in terms as well (e. g. T220118 <https://phabricator.wikimedia.org/T220118>), which means adding them to `wmgExtraLanguageNames` in wikimedia-config. In the past, we’ve removed such codes from the default monolingual text languages afterwards (though often with some delay), since they’re now redundant in Wikidata. However, this means that third-party installations will lose support for such language codes even if they might (in theory) already have data using them, since the language codes are no longer in the default monolingual text languages and these installations don’t use the Wikimedia configuration where they’re now listed instead. Should we do anything about this? I see several possible ways forward: - Don’t change anything, continue to remove the redundant language codes. If third-party installations are unlikely to actually use those language codes, there’s no problem. If they do use them, they can still configure `$wgExtraLanguageNames` in their own settings. - Fully duplicate `wmgExtraLanguageNames` in the default monolingual text languages, so that they’re supported on all installations. Very slightly bloats Wikibase, but it’s not really a big deal. - Remove the hard-coded extra default monolingual text languages (i. e. this list <https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/b45e05c44e927937607c114af01bb550d7aa7a88/lib/includes/WikibaseContentLanguages.php#L73-L126>) from the Wikibase source code repository and instead move them to the Wikimedia configuration repository as well, so they’re only effective on Wikidata and other Wikimedia installations, not on third-party installations. (Though I think the required configuration variable would have to be introduced first.) Once both lists are configured in the same place, we can remove a language code from the monolingual text languages every time we add it to `wmgExtraLanguageNames`, even in the same commit. TASK DETAIL https://phabricator.wikimedia.org/T220798 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Aklapper, jhsoby-WMNO, Lucas_Werkmeister_WMDE, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Srdjan_m, MuhammadShuaib, LNDDYL, MGChecker, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g, Krenair, Legoktm
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs