2019-08-18 20:13:04 +02:00
|
|
|
#!/bin/sh
|
2015-01-24 20:57:44 +01:00
|
|
|
|
2019-08-18 20:13:04 +02:00
|
|
|
# Regenerates the POT files, downloads the latest translations from Transifex,
|
|
|
|
# and prepares the commit of the updated POT and PO files.
|
2015-01-24 20:57:44 +01:00
|
|
|
|
|
|
|
SCRIPT_PATH="`dirname \"$0\"`"
|
|
|
|
|
|
|
|
|
|
|
|
# POT Generation ##############################################################
|
|
|
|
|
|
|
|
echo ":: Regenerating the translation templates…"
|
2020-12-02 11:05:27 +01:00
|
|
|
python3 "${SCRIPT_PATH}/updateTemplates.py"
|
2015-01-24 20:57:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
# PO Download #################################################################
|
|
|
|
|
|
|
|
echo ":: Downloading translations from Transifex…"
|
2020-12-02 11:05:27 +01:00
|
|
|
python3 "${SCRIPT_PATH}/pullTranslations.py"
|
2015-01-24 20:57:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Pre-Commit Cleanup #########################################################
|
|
|
|
|
|
|
|
echo ":: Reverting unnecessary changes…"
|
2020-12-02 11:05:27 +01:00
|
|
|
python3 "${SCRIPT_PATH}/checkDiff.py"
|
2015-01-24 20:57:44 +01:00
|
|
|
|
|
|
|
# Commit ######################################################################
|
|
|
|
|
|
|
|
echo ":: Done"
|
|
|
|
echo " Now you can commit your changes to the server."
|