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 --- src/templates/-404.html.tmpl | 12 +- src/templates/-base.html.tmpl | 10 +- src/templates/-error.html.tmpl | 16 +-- src/templates/-navbar.html.tmpl | 18 +-- src/templates/about.html.tmpl | 48 +++---- src/templates/banknotes-codes.html.tmpl | 239 ++++++++++++++------------------ src/templates/index.html.tmpl | 20 ++- 7 files changed, 149 insertions(+), 214 deletions(-) (limited to 'src/templates') diff --git a/src/templates/-404.html.tmpl b/src/templates/-404.html.tmpl index c86dc30..06ac02b 100644 --- a/src/templates/-404.html.tmpl +++ b/src/templates/-404.html.tmpl @@ -1,16 +1,12 @@ {{ define "content" }}
{{ template "navbar" . }} -

{{ .T "Page Not Found" }}

+

{{ .Get "Page Not Found" }}

- {{ .T ` - The page you were looking for does not exist. If you believe this - is a mistake then don’t hesitate to contact @onetruemangoman on - Discord or email us at %s.` - `mail@euro-cash.eu` | safe - }} + {{ .Get "The page you were looking for does not exist. If you believe this is a mistake then don’t hesitate to contact ‘@onetruemangoman’ on Discord or email us at %(Email:e)." + (map "Email" "mail@euro-cash.eu") }}

-{{ end }} +{{ end }} \ No newline at end of file diff --git a/src/templates/-base.html.tmpl b/src/templates/-base.html.tmpl index 2a33cc3..388561b 100644 --- a/src/templates/-base.html.tmpl +++ b/src/templates/-base.html.tmpl @@ -1,10 +1,10 @@ - + - {{ .T "Euro Cash" }} + {{ .Get "Euro Cash" }}