summaryrefslogtreecommitdiff
path: root/ci/txpush.sh
diff options
context:
space:
mode:
authorAdriaan de Groot <groot@kde.org>2017-09-07 05:43:50 -0400
committerAdriaan de Groot <groot@kde.org>2017-09-07 05:43:50 -0400
commitf63b44c984ada32f3891b631b35b427814005552 (patch)
tree9b11a2464049e0a4c7c99bb52fd492bd8b19af1a /ci/txpush.sh
parent15c2a9664028bd353b738324f3f5582fe81a9cf2 (diff)
i18n: smash things back from unspecified charset to UTF-8
Diffstat (limited to 'ci/txpush.sh')
-rwxr-xr-xci/txpush.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/ci/txpush.sh b/ci/txpush.sh
index cb2499f3e..fe6d7170f 100755
--- a/ci/txpush.sh
+++ b/ci/txpush.sh
@@ -56,8 +56,10 @@ for MODULE_DIR in $(find src/modules -maxdepth 1 -mindepth 1 -type d) ; do
MODULE_NAME=$(basename ${MODULE_DIR})
if [ -d ${MODULE_DIR}/lang ]; then
${PYGETTEXT} -p ${MODULE_DIR}/lang -d ${MODULE_NAME} -o ${MODULE_NAME}.pot ${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
+ POTFILE="${MODULE_DIR}/lang/${MODULE_NAME}.pot"
+ if [ -f "$POTFILE" ]; then
+ sed -i'' '/^"Content-Type/s/CHARSET/UTF-8/' "$POTFILE"
+ tx set -r calamares.${MODULE_NAME} --source -l en "$POTFILE"
tx push --source --no-interactive -r calamares.${MODULE_NAME}
fi
else
@@ -68,6 +70,8 @@ done
if test -n "$SHARED_PYTHON" ; then
${PYGETTEXT} -p lang -d python -o python.pot $SHARED_PYTHON
- tx set -r calamares.python --source -l en lang/python.pot
+ POTFILE="lang/python.pot"
+ sed -i'' '/^"Content-Type/s/CHARSET/UTF-8/' "$POTFILE"
+ tx set -r calamares.python --source -l en "$POTFILE"
tx push --source --no-interactive -r calamares.python
fi