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:26:37 +0100
commitd5f292c4d2d992ffaabe91571547768e194a32b7 (patch)
treea0c3fd86af8d9a829dd97f0debdde86aeaafed4f /bin
parente0326b2e0d7b9fb88592baf7dc1991bd4d35a0e6 (diff)
downloadpykolab-d5f292c4d2d992ffaabe91571547768e194a32b7.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 ..