aboutsummaryrefslogtreecommitdiff
path: root/update-po.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-10-12 07:46:50 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-10-12 07:46:50 +0200
commit0d590092342193bef0f7f08218287973289a5008 (patch)
tree81b296910bef168990df1384908922f30e334c31 /update-po.sh
parente3f31de1e4718b6888ae613133802020dcecd303 (diff)
downloadayatana-indicator-keyboard-0d590092342193bef0f7f08218287973289a5008.tar.gz
ayatana-indicator-keyboard-0d590092342193bef0f7f08218287973289a5008.tar.bz2
ayatana-indicator-keyboard-0d590092342193bef0f7f08218287973289a5008.zip
update-po(|t).sh: Add gettext update scripts.
Diffstat (limited to 'update-po.sh')
-rwxr-xr-xupdate-po.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/update-po.sh b/update-po.sh
new file mode 100755
index 00000000..6a5dcaf9
--- /dev/null
+++ b/update-po.sh
@@ -0,0 +1,15 @@
+#!/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
+ if [ ! -e ${lingua}.po ]; then
+ msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po
+ else
+ intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua})
+ fi
+done
+cd - 1>/dev/null