From 9e6b8de302a2485f6c64321ea42eb53592d1afc9 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 12 Oct 2017 07:37:17 +0200 Subject: update-po.sh update-po(|t).sh: Add gettext update scripts. --- update-pot.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 update-pot.sh (limited to 'update-pot.sh') 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 -- cgit v1.2.3