aboutsummaryrefslogtreecommitdiff
path: root/update-po.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 15:42:50 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 15:42:50 +0200
commit5d1d6dd7638bcdb46efbdc4b31dad33c8e845a24 (patch)
treef5250401c02608e1eeed58723ae8a5e17592a156 /update-po.sh
parentaa57a3bc317a49c99053dd8d2a4c4e17fb5f719d (diff)
downloadayatana-indicator-session-5d1d6dd7638bcdb46efbdc4b31dad33c8e845a24.tar.gz
ayatana-indicator-session-5d1d6dd7638bcdb46efbdc4b31dad33c8e845a24.tar.bz2
ayatana-indicator-session-5d1d6dd7638bcdb46efbdc4b31dad33c8e845a24.zip
update-po.sh: Add mini script to update po/*.po files.
Diffstat (limited to 'update-po.sh')
-rwxr-xr-xupdate-po.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/update-po.sh b/update-po.sh
new file mode 100755
index 0000000..5b0da1c
--- /dev/null
+++ b/update-po.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -x
+
+GETTEXT_DOMAIN=$(cat CMakeLists.txt | grep 'set.*(.*GETTEXT_PACKAGE' | sed -r -e 's/.*\"([^"]+)\"\)/\1/')
+
+cd po/
+cat LINGUAS | while read lingua; do touch ${lingua}.po; intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}); done
+cd - 1>/dev/null