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 ######################################################################
32 echo " Now you can commit your changes to the server."