From 9ad584a432dbe98688a12fd7b8b40edb6b688af7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 31 Jul 2025 23:27:26 +0200 Subject: Fix translation extraction --- GNUmakefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 6e320e7..39d4b43 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -16,8 +16,7 @@ euro-cash.eu: $(cssfiles) $(templates) $(gofiles) $(sqlfiles) $(GO) build extract: exttmpl - find . -name '*.go' -exec xgettext -Lgo --force-po --from-code=UTF-8 \ - -o po/backend.pot {} + + find . -name '*.go' -exec xgotext -o po/backend.pot {} + find . -name '*.html.tmpl' -exec ./exttmpl {} + \ | msgcat po/backend.pot - -o po/messages.pot for bcp in $(ENABLED_LANGUAGES); \ @@ -27,7 +26,7 @@ extract: exttmpl then \ mkdir -p "$$dir"; \ msginit -i po/messages.pot -o "$$dir/messages.po" -l$$bcp.UTF-8 \ ---no-translator; \ + --no-translator; \ fi; \ msgmerge --update "po/$$bcp/messages.po" po/messages.pot; \ done @@ -58,4 +57,4 @@ clean: -or -name '*.tar.gz' \ \) -delete -.PHONY: clean extract po release \ No newline at end of file +.PHONY: clean extract po release -- cgit v1.2.3