Update ifdef condition for MCST-LCC compiler (E2K)
[0ad.git] / source / tools / i18n / maintenanceTasks.sh
blobe738bb447761b52e10099f2cfa3bd8c85167236d
1 #!/bin/sh
3 # Regenerates the POT files, downloads the latest translations from Transifex,
4 # and prepares the commit of the updated POT and PO files.
6 SCRIPT_PATH="`dirname \"$0\"`"
9 # POT Generation ##############################################################
11 echo ":: Regenerating the translation templates…"
12 python3 "${SCRIPT_PATH}/updateTemplates.py"
15 # PO Download #################################################################
17 echo ":: Downloading translations from Transifex…"
18 python3 "${SCRIPT_PATH}/pullTranslations.py"
21 # Pre-Commit Cleanup #########################################################
23 echo ":: Removing unneeded data from the .po files…"
24 python3 "${SCRIPT_PATH}/cleanTranslationFiles.py"
26 echo ":: Reverting unnecessary changes…"
27 python3 "${SCRIPT_PATH}/checkDiff.py"
29 # Commit ######################################################################
31 echo ":: Done"
32 echo " Now you can commit your changes to the server."