From 1593a094e1e9cf3006a084883539533856e1b535 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 23 Jul 2025 20:01:32 +0200 Subject: Use a semi-in-house translation system --- GNUmakefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index d42cc0b..2278112 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -12,8 +12,12 @@ euro-cash.eu: $(cssfiles) $(templates) $(gofiles) $(sqlfiles) go build all-i18n: exttmpl - go generate ./src - find . -name out.gotext.json | mcp -b sed s/out/messages/ + find . -name '*.html.tmpl' -exec ./exttmpl -out po/templates.pot {} + + for bcp in en en-US nl; \ + do \ + mkdir -p "po/$$bcp"; \ + msgmerge --update "po/$$bcp/messages.po" po/templates.pot; \ + done go build exttmpl: $(exttmpl) -- cgit v1.2.3