From 84e59cbd782875a8ec0e2ca40fd1b086ca4ac64d Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Tue, 27 Jul 2021 12:02:55 +0200 Subject: po: Do not break long message lines Both xgettext(1) and msgmerge(1) break messages by default. Since we currently do not have particularly long strings marked for translation, turn this particular behaviour off by passing --no-wrap. It would otherwise lead to spurious breaks in the PO and POT files that are not particularly nice. --- po/update-pot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'po') diff --git a/po/update-pot.sh b/po/update-pot.sh index 5868890..6c515a0 100644 --- a/po/update-pot.sh +++ b/po/update-pot.sh @@ -3,7 +3,7 @@ set -e _xgettext() { - xgettext --from-code=utf-8 --package-name=weltschmerz -cTRANSLATORS "$@" -o po/weltschmerz.pot + xgettext --no-wrap --from-code=utf-8 --package-name=weltschmerz -cTRANSLATORS "$@" -o po/weltschmerz.pot } _xgettext -f po/POTFILES @@ -14,5 +14,5 @@ _xgettext -f po/POTFILES _xgettext -j -k -kComment -kKeywords weltschmerz.desktop.in while read lang; do - msgmerge -q -o "po/${lang}.po" "po/${lang}.po" po/weltschmerz.pot + msgmerge --no-wrap -q -o "po/${lang}.po" "po/${lang}.po" po/weltschmerz.pot done < po/LINGUAS -- cgit v1.2.3-2-gb3c3