summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-02-21 21:51:23 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-02-21 21:51:23 +0000
commit0f658c8ce990a816458d152a6ae4ce24e514e0db (patch)
treeaa446421840803c432c1729f326edd55849c7b44
parentd4bbdffe03f54c98ffd34c3a2faeca375f57a6ee (diff)
downloadpykolab-0f658c8ce990a816458d152a6ae4ce24e514e0db.tar.gz
Add a shortcut script to update the po files
-rwxr-xr-xbin/pykolab-update-lang9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/pykolab-update-lang b/bin/pykolab-update-lang
new file mode 100755
index 0000000..91d70fd
--- /dev/null
+++ b/bin/pykolab-update-lang
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+echo "Updating language files"
+cd po/
+intltool-update --pot
+if [ "$1" == "po" ]; then
+ ls *po | cut -f1 -d'.' | xargs -I'{}' intltool-update -d '{}'
+fi
+cd ..