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