aboutsummaryrefslogtreecommitdiff
path: root/update-po.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 16:24:05 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 16:24:05 +0200
commitc14bc0ac092024f7e451c1b95dfefab7fff66bf6 (patch)
treece58a3dcf13a3ec5a7ec2242347b24303a71974c /update-po.sh
parent9d50a7d33a41c4d002d9cd4b7dec8bfad0e66402 (diff)
downloadarctica-greeter-c14bc0ac092024f7e451c1b95dfefab7fff66bf6.tar.gz
arctica-greeter-c14bc0ac092024f7e451c1b95dfefab7fff66bf6.tar.bz2
arctica-greeter-c14bc0ac092024f7e451c1b95dfefab7fff66bf6.zip
update-po.sh: Add simple 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..15e9d53
--- /dev/null
+++ b/update-po.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -x
+
+GETTEXT_DOMAIN=$(cat configure.ac | grep -E "^GETTEXT_PACKAGE=" | sed -e 's/GETTEXT_PACKAGE=//')
+
+cd po/
+cat LINGUAS | while read lingua; do touch ${lingua}.po; intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}); done
+cd - 1>/dev/null