summaryrefslogtreecommitdiffstats
path: root/bin/pykolab-update-lang
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pykolab-update-lang')
-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 ..