aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 15:19:06 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 15:19:06 +0200
commit7a214d4937ef1d5628bcb7068417b329705599ab (patch)
treeb9faa4678f0742ab17da5773c36579d578859dc4
parent57f0dfdda4b94a524a6cd626c12b63027898cc78 (diff)
downloadayatana-indicator-power-7a214d4937ef1d5628bcb7068417b329705599ab.tar.gz
ayatana-indicator-power-7a214d4937ef1d5628bcb7068417b329705599ab.tar.bz2
ayatana-indicator-power-7a214d4937ef1d5628bcb7068417b329705599ab.zip
update-po.sh: Add simple script to update po/*.po files.
-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