diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-07-23 20:01:32 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-07-23 20:01:32 +0200 |
commit | 1593a094e1e9cf3006a084883539533856e1b535 (patch) | |
tree | 493e016c3d07f8428bc1d8a7ffb4b69190f8816d /GNUmakefile | |
parent | 5f1bd49cfef5852bbd539754fb31e8adada29ef3 (diff) |
Use a semi-in-house translation system
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 8 |
1 files changed, 6 insertions, 2 deletions
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) |