From 78e1e14fa676a6c995d9dc61ad038a9906f37bf7 Mon Sep 17 00:00:00 2001 From: Juhani Krekelä Date: Sat, 24 Jul 2021 19:15:12 +0300 Subject: po: Fix update-pot.sh breaking on non-ASCII Currently po/update-pot.sh assumes English strings and translator comments cannot contain characters outside of ASCII, and throws an error upon encountering any. Since we are actually using UTF-8 and not ASCII, tell xgettext so. --- po/update-pot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'po') diff --git a/po/update-pot.sh b/po/update-pot.sh index e29bfb1..5868890 100644 --- a/po/update-pot.sh +++ b/po/update-pot.sh @@ -3,7 +3,7 @@ set -e _xgettext() { - xgettext --package-name=weltschmerz -cTRANSLATORS "$@" -o po/weltschmerz.pot + xgettext --from-code=utf-8 --package-name=weltschmerz -cTRANSLATORS "$@" -o po/weltschmerz.pot } _xgettext -f po/POTFILES -- cgit v1.2.3-2-gb3c3