From d8e52a616c0419313d809a61553cb7732d16d0da Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 13 Nov 2024 18:03:25 +0100 Subject: [PATCH] Updated update_translation_strings.sh to sort the input source files so the .po files get consistently sorted as well --- tools/update_translation_strings.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/update_translation_strings.sh b/tools/update_translation_strings.sh index a62ec11d2..7d57d3650 100755 --- a/tools/update_translation_strings.sh +++ b/tools/update_translation_strings.sh @@ -23,8 +23,8 @@ if [ ! $(which xgettext 2>/dev/null) ]; then exit fi -find ../es-app/src/ ../es-core/src -name '*.cpp' -o -name '*.h' | xgettext -f - -o ../locale/es-de.pot -k_ -k_n:1,2 -k_p:1c,2 -k_np:1c,2,3 --no-location \ ---copyright-holder="Northwestern Software AB" --package-name="ES-DE Frontend" --msgid-bugs-address "info@es-de.org" +find ../es-app/src/ ../es-core/src -name '*.cpp' -o -name '*.h' | sort | xgettext -f - -o ../locale/es-de.pot -k_ -k_n:1,2 -k_p:1c,2 -k_np:1c,2,3 \ +--no-location --copyright-holder="Northwestern Software AB" --package-name="ES-DE Frontend" --msgid-bugs-address "info@es-de.org" sed -i "1s/.*/# ES-DE Frontend translation strings./" ../locale/es-de.pot sed -i "2s/.*/# Copyright (c) 2024 Northwestern Software AB/" ../locale/es-de.pot