aboutsummaryrefslogtreecommitdiffhomepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-07-31 23:27:26 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-07-31 23:27:26 +0200
commit9ad584a432dbe98688a12fd7b8b40edb6b688af7 (patch)
tree9008f7672cab3a11e2da0ba38b07675c735bd78f /GNUmakefile
parentd11c067428aff5b9f950d5ff80d43a2f3654eef4 (diff)
Fix translation extraction
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile7
1 files changed, 3 insertions, 4 deletions
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