summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-11 14:52:52 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-11 14:52:52 +0100
commitffe4348a5d4a5959bd16d93df59c3b2b5e6b6a27 (patch)
tree786df38d7369c8e030eedfb075a7c74a162ea01f /bin
parent57a4fe76f37e9f9c9483351dfaf39051d5bebe1a (diff)
downloadpykolab-ffe4348a5d4a5959bd16d93df59c3b2b5e6b6a27.tar.gz
Update translation routines
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pykolab-update-lang12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/pykolab-update-lang b/bin/pykolab-update-lang
index e6bab88..a351e40 100755
--- a/bin/pykolab-update-lang
+++ b/bin/pykolab-update-lang
@@ -17,14 +17,18 @@ find . -type f -name "*.py" -o -name "*.py.in" | \
done
cd po/
+
intltool-update --pot --gettext-package=pykolab
+
if [ "$1" == "po" ]; then
for lang_file in `ls -1 *.po`; do
lang=$(echo ${lang_file} | cut -f1 -d'.')
+ tx pull -f -l ${lang}
intltool-update -d ${lang}
- msginit --no-translator --locale=${lang} --input=pykolab.pot --output=${lang_file}
- msgmerge -U ${lang_file} pykolab.pot
- done
-
+ done
fi
+
+echo "Push the new .pot file back to transifex"
+
+tx push -s
cd ..