diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-07-21 14:29:39 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-07-21 14:29:39 +0200 |
commit | 8049c1b928f719231e2d429d67d1522f85a4989d (patch) | |
tree | 14df564945b91cdb80039cc9ebcd527e8ce42e82 | |
parent | 10a06c6bbf6942ddeeca4fc7d386402e0552a06f (diff) | |
download | ayatana-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.
-rwxr-xr-x | update-pot.sh | 5 |
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 |