translations
authorPaul Hänsch <paul@plutz.net>
Thu, 30 Nov 2023 22:15:16 +0000 (23:15 +0100)
committerPaul Hänsch <paul@plutz.net>
Thu, 30 Nov 2023 22:15:16 +0000 (23:15 +0100)
invoices.cgi
l10n.sh [new file with mode: 0644]

index ae97b17b0aa2548b661bbb0af2ca7f2e404bbcad..6313a88107dc49f6bf250696442a92a30f03d83d 100755 (executable)
@@ -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 (file)
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
+}