Add german translation

This commit is contained in:
Daniel A. Maierhofer 2017-06-18 13:59:31 +02:00
parent 8387797d32
commit a27349e736
5 changed files with 15 additions and 15 deletions

View file

@ -79,13 +79,13 @@ def main():
else: else:
main_content = read_template_file('fail.tpl', message=cgi.escape(p.stdout.read())) main_content = read_template_file('fail.tpl', message=cgi.escape(p.stdout.read()))
else: 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: 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: 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: 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: else:
# Submit button not pressed, show form # Submit button not pressed, show form
formaction = cgi.escape("https://" + os.environ["HTTP_HOST"] + os.environ["REQUEST_URI"]) formaction = cgi.escape("https://" + os.environ["HTTP_HOST"] + os.environ["REQUEST_URI"])

View file

@ -1,5 +1,5 @@
<div class="error"> <div class="error">
<h2>Oops, something went wrong…</h2> <h2>Euje, da ist etwas schief gelaufen…</h2>
<p>Message: <span class="message">{$message}</span></p> <p>Message: <span class="message">{$message}</span></p>
<a href="" class="back">Try again</a> <a href="" class="back">Nochmal probieren</a>
</div> </div>

View file

@ -1,13 +1,13 @@
<form action="{$formaction}" method="post"> <form action="{$formaction}" method="post">
<div id="PasswordForm"> <div id="PasswordForm">
<p><label for="accountname">Mail Account Name:</label> <p><label for="accountname">E-Mail-Adresse:</label>
<input type="text" name="accountname" id="accountname" placeholder="Your account name, including internal prefix" required></p> <input type="text" name="accountname" id="accountname" required></p>
<p><label for="oldpass">Old Mail Password:</label> <p><label for="oldpass">Altes Passwort:</label>
<input type="password" name="oldpass" id="oldpass" required></p> <input type="password" name="oldpass" id="oldpass" required></p>
<p><label for="newpass">New Mail Password:</label> <p><label for="newpass">Neues Passwort:</label>
<input type="password" name="newpass" id="newpass" required></p> <input type="password" name="newpass" id="newpass" required></p>
<p><label for="newpass2">Repeat New Mail Password:</label> <p><label for="newpass2">Neues Passwort nochmals:</label>
<input type="password" name="newpass2" id="newpass2" required></p> <input type="password" name="newpass2" id="newpass2" required></p>
<p><input type="submit" name="submit" value="Change Password"></p> <p><input type="submit" name="submit" value="Passwort ändern"></p>
</div> </div>
</form> </form>

View file

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Change Mailbox Password</title> <title>Mailbox Passwort</title>
<meta charset="utf-8"> <meta charset="utf-8">
<style> <style>
html { html {
@ -75,7 +75,7 @@
</style> </style>
<body> <body>
<div id="Main"> <div id="Main">
<h1>Change Mailbox Password</h1> <h1>Mailbox Passwort ändern</h1>
{$main_content} {$main_content}
</div> </div>
</body> </body>

View file

@ -1 +1 @@
<p class="success">Your password was changed successfully.</p> <p class="success">Passwort erfolgreich geändert.</p>