0ad/source/tools/i18n/maintenanceTasks.sh
bb 6ed690f102 Add script to remove unneeded info from .po files
Differential Revision: D4264
This was SVN commit r26123.
2021-12-27 14:31:32 +00:00

33 lines
965 B
Bash
Executable File

#!/bin/sh
# Regenerates the POT files, downloads the latest translations from Transifex,
# and prepares the commit of the updated POT and PO files.
SCRIPT_PATH="`dirname \"$0\"`"
# POT Generation ##############################################################
echo ":: Regenerating the translation templates…"
python3 "${SCRIPT_PATH}/updateTemplates.py"
# PO Download #################################################################
echo ":: Downloading translations from Transifex…"
python3 "${SCRIPT_PATH}/pullTranslations.py"
# Pre-Commit Cleanup #########################################################
echo ":: Removing unneeded data from the .po files…"
python3 "${SCRIPT_PATH}/cleanTranslationFiles.py"
echo ":: Reverting unnecessary changes…"
python3 "${SCRIPT_PATH}/checkDiff.py"
# Commit ######################################################################
echo ":: Done"
echo " Now you can commit your changes to the server."