From b0e1be9a0f8cdec2f243129887a6048e51b4eb67 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sun, 14 Aug 2022 19:51:41 +0200 Subject: Whitespace fix --- update-po.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'update-po.sh') diff --git a/update-po.sh b/update-po.sh index 5f9e9fd..eded8f7 100755 --- a/update-po.sh +++ b/update-po.sh @@ -22,17 +22,17 @@ cp po/${GETTEXT_DOMAIN}.pot po/${GETTEXT_DOMAIN}.pot~ cd po/ cat LINGUAS | while read lingua; do - if [ ! -e ${lingua}.po ]; then - msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po - else - intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}) - fi - - sed -e 's/\.xml\.in\.h:/.xml.in:/g' \ - -e 's/\.ini\.in\.h:/.ini.in:/g' \ - -e 's/\.xml\.h:/.xml:/g' \ - -e 's/\.ini\.h:/.ini:/g' \ - -i ${lingua}.po + if [ ! -e ${lingua}.po ]; then + msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po + else + intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}) + fi + + sed -e 's/\.xml\.in\.h:/.xml.in:/g' \ + -e 's/\.ini\.in\.h:/.ini.in:/g' \ + -e 's/\.xml\.h:/.xml:/g' \ + -e 's/\.ini\.h:/.ini:/g' \ + -i ${lingua}.po done cd - 1>/dev/null -- cgit v1.2.3 From de319a7f92a0a74a38e15c2ab6f54144fe25bda9 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sun, 14 Aug 2022 19:54:16 +0200 Subject: Update translation scripts --- update-po.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update-po.sh') diff --git a/update-po.sh b/update-po.sh index eded8f7..b0470a0 100755 --- a/update-po.sh +++ b/update-po.sh @@ -16,14 +16,14 @@ set -x # You should have received a copy of the GNU General Public License # along with this program. If not, see -GETTEXT_DOMAIN=$(cat configure.ac | grep -E "^GETTEXT_PACKAGE=" | sed -e 's/GETTEXT_PACKAGE=//') +GETTEXT_DOMAIN=$(cat CMakeLists.txt | grep 'set.*(.*GETTEXT_PACKAGE' | sed -r -e 's/.*\"([^"]+)\"\)/\1/') cp po/${GETTEXT_DOMAIN}.pot po/${GETTEXT_DOMAIN}.pot~ cd po/ cat LINGUAS | while read lingua; do if [ ! -e ${lingua}.po ]; then - msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po + msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po else intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua}) fi -- cgit v1.2.3