diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-09-01 22:51:19 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-09-01 22:51:19 +0200 |
commit | 81f17a2636fa0398eec999f1f211b1d391044ee1 (patch) | |
tree | 109a51a17064e2105ac43e44bcadc926a66c1b53 /.local/bin/Makefile | |
parent | 9583a5f6a45fe3372b108fc03508911d53a96347 (diff) |
vlt: Add Swedish support
Diffstat (limited to '.local/bin/Makefile')
-rw-r--r-- | .local/bin/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.local/bin/Makefile b/.local/bin/Makefile new file mode 100644 index 0000000..2f659f9 --- /dev/null +++ b/.local/bin/Makefile @@ -0,0 +1,30 @@ +TEXTDOMAINDIR=/usr/local/share/locale + +all: + +extract: + mkdir -p po/sv + for x in vlt; \ + do \ + xgettext -L Shell -k_ --from-code=UTF-8 -o "po/$$x.pot" "$$x"; \ + for l in sv_SE; \ + do \ + d="$${l%_*}"; \ + if [ -e "po/$$d/$$x.po" ]; \ + then \ + msgmerge -U "po/$$d/$$x.po" "po/$$x.pot"; \ + else \ + msginit -l "$$l.UTF-8" -i "po/$$x.pot" -o "po/$$d/$$x.po"; \ + fi; \ + done; \ + done + +compile: + mkdir -p "$(TEXTDOMAINDIR)/sv/LC_MESSAGES" + for l in sv; \ + do \ + for x in vlt; \ + do \ + msgfmt "po/$$l/$$x.po" -o "$(TEXTDOMAINDIR)/$$l/LC_MESSAGES/$$x.mo"; \ + done; \ + done |