From 6598b721470e9b9387b76c5f2126ecb0f7b5fc98 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 21 Jul 2017 16:27:00 +0200 Subject: update-po.sh: Add simple script to update po/*.po files. --- update-po.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 update-po.sh diff --git a/update-po.sh b/update-po.sh new file mode 100755 index 0000000..15e9d53 --- /dev/null +++ b/update-po.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -x + +GETTEXT_DOMAIN=$(cat configure.ac | grep -E "^GETTEXT_PACKAGE=" | sed -e 's/GETTEXT_PACKAGE=//') + +cd po/ +cat LINGUAS | while read lingua; do touch ${lingua}.po; intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}); done +cd - 1>/dev/null -- cgit v1.2.3