From 63c3c25e39ff345b53e6faadbfde36978bb375f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 30 Nov 2023 23:15:16 +0100 Subject: [PATCH] translations --- invoices.cgi | 2 +- l10n.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 l10n.sh diff --git a/invoices.cgi b/invoices.cgi index ae97b17..6313a88 100755 --- a/invoices.cgi +++ b/invoices.cgi @@ -13,7 +13,7 @@ _EXEC="$(realpath "${0%/*}")" SESSION_COOKIE _() { printf '%s\n' "$*"; } -# . "$_EXEC/l10n.sh" +. "$_EXEC/l10n.sh" which git && [ ! -d .git ] && { git init diff --git a/l10n.sh b/l10n.sh new file mode 100644 index 0000000..2e541b1 --- /dev/null +++ b/l10n.sh @@ -0,0 +1,15 @@ +_(){ + case $* in + New) printf Neu;; + Open) printf Offen;; + Sent) printf Versendet;; + Reminded) printf Erinnert;; + Paid) printf Bezahlt;; + Cancelled) printf Storniert;; + Update) printf Übernehmen;; + Type) printf Vorlage;; + Status) printf Status;; + tmpl_schatzinsel) printf Schatzinsel;; + *) printf '%s' "$*";; + esac +} -- 2.39.5