Page MenuHomePhabricator

Automate adding languages to wikistats
Open, Needs TriagePublic

Description

Currently, Wikistats has a 75% localization completeness threshold for enabling new languages. It also has a manual step for adding a language once it reaches this threshold. It's documented at https://wikitech.wikimedia.org/wiki/Data_Engineering/Systems/Wikistats_2#Adding_languages

The 75% threshold is high-ish; e.g. for MediaWiki core it's 13%. That's not a major issue, however; the number can be easily changed some time. A bigger issue is that it would be nice to make this configuration more automatic.

The threshold itself can be easily defined in the translatewiki configuration. There is such a feature there already. Translations into languages below the threshold won't be exported from translatewiki.

This leaves the issue of the manual language enabling step. Can it be removed? Can Wikistats just assume that if a translation file for a language is found under src/i18n, then it will be enabled?

If it's too complicated to do it, can there perhaps be an automated build step that detects that a language has crossed the threshold and then automatically added to the language configuration file?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 921329 had a related patch set uploaded (by Amire80; author: Nik Gkountas):

[analytics/wikistats2@master] WIP Show a warning for unused languages with localization over 75%

https://gerrit.wikimedia.org/r/921329