From a27349e736aac8e0d05ab168d3185ecd2bd83230 Mon Sep 17 00:00:00 2001 From: "Daniel A. Maierhofer" Date: Sun, 18 Jun 2017 13:59:31 +0200 Subject: [PATCH] Add german translation --- index.py | 8 ++++---- tpl/fail.tpl | 4 ++-- tpl/form.tpl | 12 ++++++------ tpl/main.tpl | 4 ++-- tpl/success.tpl | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/index.py b/index.py index 5131ee5..eb15d13 100755 --- a/index.py +++ b/index.py @@ -79,13 +79,13 @@ def main(): else: main_content = read_template_file('fail.tpl', message=cgi.escape(p.stdout.read())) else: - main_content = read_template_file('fail.tpl', message='User not found or wrong password entered.') + main_content = read_template_file('fail.tpl', message='Benutzer nicht gefunden oder Passwort falsch.') else: - main_content = read_template_file('fail.tpl', message='Passwords do not match.') + main_content = read_template_file('fail.tpl', message='Passwörter stimmen nicht überein.') elif form_ok == False: - main_content = read_template_file('fail.tpl', message='All fields are required.') + main_content = read_template_file('fail.tpl', message='Alle Felder müssen ausgefüllt werden.') else: - main_content = read_template_file('fail.tpl', message='Invalid data type supplied.') + main_content = read_template_file('fail.tpl', message='Ungültiger Datentyp.') else: # Submit button not pressed, show form formaction = cgi.escape("https://" + os.environ["HTTP_HOST"] + os.environ["REQUEST_URI"]) diff --git a/tpl/fail.tpl b/tpl/fail.tpl index 8cd0d7a..5dddf61 100644 --- a/tpl/fail.tpl +++ b/tpl/fail.tpl @@ -1,5 +1,5 @@
-

Oops, something went wrong…

+

Euje, da ist etwas schief gelaufen…

Message: {$message}

- Try again + Nochmal probieren
diff --git a/tpl/form.tpl b/tpl/form.tpl index 4be6dbc..735b94d 100644 --- a/tpl/form.tpl +++ b/tpl/form.tpl @@ -1,13 +1,13 @@
-

-

-

+

+

+

-

+

-

+

-

+

diff --git a/tpl/main.tpl b/tpl/main.tpl index f140814..078e9fa 100644 --- a/tpl/main.tpl +++ b/tpl/main.tpl @@ -1,7 +1,7 @@ -Change Mailbox Password +Mailbox Passwort
-

Change Mailbox Password

+

Mailbox Passwort ändern

{$main_content}
diff --git a/tpl/success.tpl b/tpl/success.tpl index 8739697..f3723bc 100644 --- a/tpl/success.tpl +++ b/tpl/success.tpl @@ -1 +1 @@ -

Your password was changed successfully.

+

Passwort erfolgreich geändert.