Compare commits

...

3 commits

Author SHA1 Message Date
Daniel A. Maierhofer 9b74fcabee Remove Message: 2020-04-27 00:35:08 +02:00
Daniel A. Maierhofer 7fafc8f150 Merge branch 'master' of https://github.com/phoerious/vmailmgr-chpw-cgi into german 2020-04-27 00:33:03 +02:00
Daniel A. Maierhofer a27349e736 Add german translation 2017-06-18 13:59:31 +02:00
5 changed files with 16 additions and 16 deletions

View file

@ -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"])

View file

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

View file

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

View file

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

View file

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