summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2021-09-27 11:33:07 +0200
committerGitHub <noreply@github.com>2021-09-27 11:33:07 +0200
commit79ca8d36bb82acb9c31f5c0012aef6c17d53fc55 (patch)
treee59b732728e1a480af3a99904aaf88cafe479512
parentfcd13815d31f4b927e498fbbb4305fb29a959acf (diff)
prepare inx for messages.po (#1356)
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b76c76de..9a19564e 100644
--- a/Makefile
+++ b/Makefile
@@ -13,9 +13,11 @@ inx: version locales
python bin/generate-inx-files; \
.PHONY: messages.po
-messages.po:
+messages.po: inx
rm -f messages.po
xgettext inx/*.inx --its=its/inx.its -o messages-inx.po
+ # There seems to be no propper way to set the charset to utf-8
+ sed -i 's/charset=CHARSET/charset=UTF-8/g' messages-inx.po
bin/pyembroidery-gettext > pyembroidery-format-descriptions.py
bin/inkstitch-fonts-gettext > inkstitch-fonts-metadata.py
pybabel extract -o messages-babel.po -F babel.conf --add-location=full --add-comments=l10n,L10n,L10N --sort-by-file --strip-comments -k N_ -k '$$gettext' .