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.