Page MenuHomePhabricator

Need an easy way to get list of wikis using Translate
Open, Needs TriagePublic

Description

For cases like T255334: Translation page does not contain the latest translations/last translation, I need a list of non-closed wikis using the Translate extension to determine where to run a maintenance script.

This time I did it like this:

  • Initial list: grep wmgUseTranslate /srv/mediawiki/wmf-config/InitialiseSettings* -A43 | grep true | cut -f2 -d"'" | xargs
  • Expand wikidata manually to real values
  • Manually remove closed wikis

I think there should be translate.dblist so that I could do something like expanddblist '%% translate - closed'.

https://wikitech.wikimedia.org/wiki/Configuration_files#dblists says to check with RelEng first for approval.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 21 2020, 7:34 AM

This would be done automagically once once the YAML migration is done - the releng's aim is to have configuration stored statically in YAML files, which would mean you would only need a YAML parser to do what you want. Not sure about the migration plan, @Jdforrester-WMF would know that.

Yeah, right now every dblist you add slows down production, so there's a general ban on adding them unless they're crucial for run-time use (and we're trying to drop a bunch of old ones).

I don't know where the project is at, I'm afraid; I think that's now something @jeena is working on.