aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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