Amire80 added a comment.

OK, I still have my question (T144272#3322282): Why are languages still added in PHP code, such as https://gerrit.wikimedia.org/r/#/c/370308/2/repo/includes/WikibaseRepo.php ?

This is data. This is not supposed to be code. It's a really bad practice. We already have too many repositories of language codes.

I strongly suggest scrapping getMonolingualTextLanguages() and adding these codes to the same langdb that is used by the UniversalLanguageSelector extension. Recently it was separated to its own repository: https://github.com/santhoshtr/language-data (it's about to be moved under the wikimedia account). Languages are added to a YAML file, which is also autoconverted to JSON, and it's usable on backend and on frontend.

Please, let's have less places for language codes, not more.


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

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

To: Amire80
Cc: Nikki, Amire80, jhsoby, Liuxinyu970226, GerardM, thiemowmde, Aklapper, Esc3300, GoranSMilovanovic, QZanden, 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