aboutsummaryrefslogtreecommitdiff
path: root/update-pot.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-10-12 07:41:41 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-10-12 07:42:19 +0200
commitb0c1b8be4a698d5e5ce2f86c6b721768745ec39b (patch)
tree80311de90f440699033847868134d3193e27d511 /update-pot.sh
parent59279c846743bb3018fe19f576cee89a45e55ae6 (diff)
downloadayatana-indicator-sound-b0c1b8be4a698d5e5ce2f86c6b721768745ec39b.tar.gz
ayatana-indicator-sound-b0c1b8be4a698d5e5ce2f86c6b721768745ec39b.tar.bz2
ayatana-indicator-sound-b0c1b8be4a698d5e5ce2f86c6b721768745ec39b.zip
update-po(|t).sh: Add gettext update scripts.
Diffstat (limited to 'update-pot.sh')
-rwxr-xr-xupdate-pot.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/update-pot.sh b/update-pot.sh
new file mode 100755
index 0000000..93371e4
--- /dev/null
+++ b/update-pot.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+GETTEXT_DOMAIN=$(cat CMakeLists.txt | grep 'set.*(.*GETTEXT_PACKAGE' | sed -r -e 's/.*\"([^"]+)\"\)/\1/')
+
+cd po/ && intltool-update --gettext-package ${GETTEXT_DOMAIN} --pot