summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-09 14:25:54 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-09 14:25:54 +0100
commit14bd17f4c4acba558628f13418060ae6e7802b36 (patch)
treed51b5406b1f08579094409f8b487191df25ec6b8 /bin
parentb2b60e26d5915cf50160f8044a4f27c7f77e6470 (diff)
downloadpykolab-14bd17f4c4acba558628f13418060ae6e7802b36.tar.gz
Update script to update language files
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pykolab-update-lang10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/pykolab-update-lang b/bin/pykolab-update-lang
index 91d70fd..cd2cdb5 100755
--- a/bin/pykolab-update-lang
+++ b/bin/pykolab-update-lang
@@ -2,8 +2,14 @@
echo "Updating language files"
cd po/
-intltool-update --pot
+intltool-update --pot --gettext-package=pykolab
if [ "$1" == "po" ]; then
- ls *po | cut -f1 -d'.' | xargs -I'{}' intltool-update -d '{}'
+ for lang_file in `ls -1 *.po`; do
+ lang=$(echo ${lang_file} | cut -f1 -d'.')
+ intltool-update -d ${lang}
+ msginit --no-translator --locale=${lang} --input=pykolab.pot --output=${lang_file}
+ msgmerge -U ${lang_file} pykolab.pot
+ done
+
fi
cd ..