Updated update_translation_strings.sh to sort the input source files so the .po files get consistently sorted as well

This commit is contained in:
Leon Styhre 2024-11-13 18:03:25 +01:00
parent fbf40c177b
commit d8e52a616c

View file

@ -23,8 +23,8 @@ if [ ! $(which xgettext 2>/dev/null) ]; then
exit exit
fi 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 \ 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 \
--copyright-holder="Northwestern Software AB" --package-name="ES-DE Frontend" --msgid-bugs-address "info@es-de.org" --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 "1s/.*/# ES-DE Frontend translation strings./" ../locale/es-de.pot
sed -i "2s/.*/# Copyright (c) 2024 Northwestern Software AB/" ../locale/es-de.pot sed -i "2s/.*/# Copyright (c) 2024 Northwestern Software AB/" ../locale/es-de.pot