Skip to content

Helper scripts

Stefan Kebekus edited this page Jul 3, 2020 · 1 revision

checkForMissingTranslations.py

This script checks the files assets/enroute_??.ts for missing translations and reports the number of untranslated strings by modifying GitHub issues. There is an issue called "Unfinished Translations - XX" for every supported language, where XX is the language code.

The script goes through all supported languages.

  • If there are no untranslated strings, the script closes the relevant issue

  • If there are untranslated string, the script (re)opens the issue and adds a comment with the number of unfinished translations

The list of supported languages and the GitHub issue numbers are hardcoded into the script.

The script takes exactly one argument, which is a GitHub Access token that is used to access the GitHub APIv3.

Clone this wiki locally