summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/8021x.html5
-rw-r--r--templates/error.html11
-rw-r--r--templates/login.html4
-rw-r--r--templates/select.html9
4 files changed, 16 insertions, 13 deletions
diff --git a/templates/8021x.html b/templates/8021x.html
index 3e3405a..a5361e2 100644
--- a/templates/8021x.html
+++ b/templates/8021x.html
@@ -2,6 +2,7 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
+ xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:sub="http://local.sublab.org/subdap/xmlns-templates"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="layout.xi"/>
@@ -11,7 +12,7 @@
<sub:bodylarge>
<div class="cont">
<h1>wpa_supplicant WPA-EAP template</h1>
- <pre>network={
+ <pre i18n:msg="8021x">network={
scan_ssid=1
ssid="crew.sublab.org"
@@ -20,7 +21,7 @@
phase2="auth=PAP"
identity="${username}"
- password="<i style="color:red;background-color:white">passwort hier einsetzen</i>"
+ password="<i style="color:red;background-color:white">insert password here</i>"
anonymous_identity="bernd"
ca_cert="<a href="${url('static/cacert.org.pem')}">/etc/ssl/certs/cacert.org.pem</a>"
diff --git a/templates/error.html b/templates/error.html
index 8c04a9b..f8bd2a4 100644
--- a/templates/error.html
+++ b/templates/error.html
@@ -2,18 +2,19 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
+ xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:sub="http://local.sublab.org/subdap/xmlns-templates"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="layout.xi"/>
<head>
- <title>login</title>
+ <title>exception</title>
</head>
<body id="error">
<img src="static/fire.png" alt="subdap"/>
- <div id="cont">
- <h1>kaputt!</h1>
- <p><code>subdap.exe</code> hat ein Problem festgestellt und musste beendet werden.<br/>
- Bitte schicken sie einen Fehlerbericht an <code>equinox ! diac24 ! net</code>.</p>
+ <div id="cont" i18n:msg="exception">
+ <h1>broken!</h1>
+ <p><code>subdap.exe</code> has detected a problem and had to be terminated.
+ Please send an error report to <code>equinox ! diac24 ! net</code>.</p>
<pre>${details}</pre>
</div>
</body>
diff --git a/templates/login.html b/templates/login.html
index ea0fe89..09b130c 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -10,10 +10,10 @@
</head>
<sub:bodyform>
<form action='login' method='POST'>
- <a href="create" id="create">Konto erstellen</a>
+ <a href="create" id="create">create account</a>
<div>uid: <input type='text' name='username' size="10"/></div>
<b class="error" py:if="'username' in errors">${errors.username}</b>
- <div>passwort: <input type='password' name='password' size="10"/></div>
+ <div>password: <input type='password' name='password' size="10"/></div>
<b class="error" py:if="'password' in errors">${errors.password}</b>
<input type='submit' value='login'/>
</form>
diff --git a/templates/select.html b/templates/select.html
index b25cd1c..5132cdc 100644
--- a/templates/select.html
+++ b/templates/select.html
@@ -2,13 +2,14 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
+ xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:sub="http://local.sublab.org/subdap/xmlns-templates"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="layout.xi"/>
<head>
<title>login</title>
</head>
- <sub:infobox py:if="message.has_key('pwchangeok')">
+ <sub:infobox py:if="message.has_key('pwchangeok')" i18n:msg="pwchangeok">
<b>Your password has been changed.</b><br />
— please note that it may take a few minutes for Kerberos to update
its <a href="http://en.wikipedia.org/wiki/File:RomanCerberus.JPG">three heads</a>. At any moment, either your old password or your new
@@ -16,13 +17,13 @@
</sub:infobox>
<sub:bodyform>
<div class="cont">
- Hallo ${user['cn']}!
+ <span i18n:msg="hi">Hi ${user['cn']}!</span>
<p class="app"><a href="https://wiki.sublab.org/auth_subdap.php?${tgts['wiki']}">
<img src="${url('static/app_wiki.png')}" alt="wiki" width="48" height="48"/> sublab.org wiki</a></p>
<p class="app"><a href="cfg8021x?username=${user['cn']}">
- <img src="${url('static/app_8021x.png')}" alt="wlan" width="24" height="24"/> 802.1X config</a></p>
+ <img src="${url('static/app_8021x.png')}" alt="wlan" width="24" height="24"/> 802.1X template</a></p>
<p class="app"><a href="pwchange?username=${user['cn']}">
- <img src="${url('static/app_password.png')}" alt="pwchange" width="24" height="24"/> Passwort ändern</a></p>
+ <img src="${url('static/app_password.png')}" alt="pwchange" width="24" height="24"/> change password</a></p>
</div>
</sub:bodyform>
</html>