aboutsummaryrefslogtreecommitdiff
path: root/update-pot.sh
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 14:29:39 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-21 14:29:39 +0200
commit8049c1b928f719231e2d429d67d1522f85a4989d (patch)
tree14df564945b91cdb80039cc9ebcd527e8ce42e82 /update-pot.sh
parent10a06c6bbf6942ddeeca4fc7d386402e0552a06f (diff)
downloadayatana-indicator-power-8049c1b928f719231e2d429d67d1522f85a4989d.tar.gz
ayatana-indicator-power-8049c1b928f719231e2d429d67d1522f85a4989d.tar.bz2
ayatana-indicator-power-8049c1b928f719231e2d429d67d1522f85a4989d.zip
update-pot.sh: Add mini script to update .pot file.
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