summaryrefslogtreecommitdiff
path: root/ci/txpush.sh
diff options
context:
space:
mode:
authorTeo Mrnjavac <teo@kde.org>2016-12-16 17:01:34 +0100
committerTeo Mrnjavac <teo@kde.org>2016-12-16 17:03:14 +0100
commit256a629ecec4e4e4ea8092397716e2d4bc413394 (patch)
treec83d46b05489f6ee15d6f84e8e56ea9e993d0d83 /ci/txpush.sh
parentec1fc5f74d7ccdc32ebaf88a8927e2733238c908 (diff)
Push all PythonQt module translation catalogs.
Diffstat (limited to 'ci/txpush.sh')
-rwxr-xr-xci/txpush.sh23
1 files changed, 22 insertions, 1 deletions
diff --git a/ci/txpush.sh b/ci/txpush.sh
index f6e7859bc..d1a2d82be 100755
--- a/ci/txpush.sh
+++ b/ci/txpush.sh
@@ -10,4 +10,25 @@ git config --global http.sslVerify false
export QT_SELECT=5
lupdate src/ -ts -no-obsolete lang/calamares_en.ts
-tx push --force --source --no-interactive
+
+# Arch
+# PYGETTEXT=/usr/lib/python3.5/Tools/i18n/pygettext.py
+
+# Ubuntu
+PYGETTEXT=pygettext3
+
+for MODULE_DIR in `find src/modules -maxdepth 1 -mindepth 1 -type d`; do
+ FILES=(${MODULE_DIR}/*.py)
+ if [ ${#FILES[@]} -gt 0 ]; then
+ MODULE_NAME=$(basename ${MODULE_DIR})
+ if [ -d ${MODULE_DIR}/lang ]; then
+ ${PYGETTEXT} -p ${MODULE_DIR}/lang -d ${MODULE_NAME} ${MODULE_DIR}/*.py
+ if [ -f ${MODULE_DIR}/lang/${MODULE_NAME}.pot ]; then
+ tx set -r calamares.${MODULE_NAME} --source -l en ${MODULE_DIR}/lang/${MODULE_NAME}.pot
+ tx push --force --source --no-interactive -r calamares.${MODULE_NAME}
+ fi
+ fi
+ fi
+done
+
+tx push --force --source --no-interactive -r calamares.calamares-master