gluon-luci-admin: expertmode texts translated

This commit is contained in:
Nils Schneider 2014-02-19 03:20:41 +01:00
parent 49a6dc21dd
commit cf38219718
3 changed files with 37 additions and 45 deletions

View File

@ -26,7 +26,7 @@ m.template = "admin/expertmode"
if fs.access("/etc/config/dropbear") then if fs.access("/etc/config/dropbear") then
s = m:section(TypedSection, "_keys", nil, s = m:section(TypedSection, "_keys", nil,
"Here you can paste public SSH-Keys (one per line) for SSH public-key authentication.") "Hier hast du die Möglichkeit SSH-Keys (einen pro Zeile) zu hinterlegen:")
s.addremove = false s.addremove = false
s.anonymous = true s.anonymous = true
@ -54,15 +54,15 @@ if fs.access("/etc/config/dropbear") then
end end
s = m:section(TypedSection, "_pass", nil, s = m:section(TypedSection, "_pass", nil,
"Changes the administrator password for accessing the device") "Alternativ kannst du auch ein Passwort setzen. Wähle bitte ein sicheres Passwort, das du nirgendswo anders verwendest.")
s.addremove = false s.addremove = false
s.anonymous = true s.anonymous = true
pw1 = s:option(Value, "pw1", "Password") pw1 = s:option(Value, "pw1", "Passwort")
pw1.password = true pw1.password = true
pw2 = s:option(Value, "pw2", "Confirmation") pw2 = s:option(Value, "pw2", "Wiederholung")
pw2.password = true pw2.password = true
function s.cfgsections() function s.cfgsections()
@ -76,12 +76,12 @@ function m.on_commit(map)
if v1 and v2 and #v1 > 0 and #v2 > 0 then if v1 and v2 and #v1 > 0 and #v2 > 0 then
if v1 == v2 then if v1 == v2 then
if luci.sys.user.setpasswd(luci.dispatcher.context.authuser, v1) == 0 then if luci.sys.user.setpasswd(luci.dispatcher.context.authuser, v1) == 0 then
m.message = "Password successfully changed!" m.message = "Passwort geändert."
else else
m.errmessage = "Unknown Error, password not changed!" m.errmessage = "Das Passwort konnte nicht geändert werden."
end end
else else
m.errmessage = "Given password confirmation did not match, password not changed!" m.errmessage = "Die beiden Passwörter stimmen nicht überein."
end end
end end
end end

View File

@ -15,7 +15,6 @@
<% if self.title and #self.title > 0 then %><h2><a id="content" name="content"><%=self.title%></a></h2><% end %> <% if self.title and #self.title > 0 then %><h2><a id="content" name="content"><%=self.title%></a></h2><% end %>
<% if self.description and #self.description > 0 then %><div class="cbi-map-descr"><%=self.description%></div><% end %> <% if self.description and #self.description > 0 then %><div class="cbi-map-descr"><%=self.description%></div><% end %>
<% self:render_children() %> <% self:render_children() %>
<br />
</div> </div>
<% if not self.embedded then %> <% if not self.embedded then %>
<div class="cbi-page-actions"> <div class="cbi-page-actions">

View File

@ -15,58 +15,50 @@ $Id$
<%+header%> <%+header%>
<h2><a id="content" name="content">Flash Firmware</a></h2> <h2>Firmware aktualisieren</h2>
<% if step == 1 then %> <% if step == 1 then %>
<% if supported then %> <% if supported then %>
<form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data"> <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
<p> <p>
Upload an OpenWrt image file to reflash the device. Hier kannst du ein manuelles Firmwareupdate durchführen.
<% if bad_image then %>
<br /><br />
<div class="error">The uploaded image file does not
contain a supported format. Make sure that you choose the generic
image format for your platform.</div>
<% end %>
</p> </p>
<% if bad_image then %>
<p class="error">Die übermittelte Firmwaredatei kann nicht verwendet werden.</p>
<% end %>
<div> <div>
Firmware image:<br /> <h3>Firmware image</h3>
<input type="hidden" name="step" value="2" /> <input type="hidden" name="step" value="2" />
<input type="file" size="30" name="image" /> <input type="file" size="30" name="image" />
<br />
<br />
<% if keepavail then -%> <% if keepavail then -%>
<br/>
<input type="checkbox" name="keepcfg" value="1" checked="checked" /> <input type="checkbox" name="keepcfg" value="1" checked="checked" />
<span class="bold">Keep configuration files</span> <label for="keepcfg">Einstellungen beibehalten</label>
<% end -%> <% end -%>
<br /> <div class="cbi-page-actions right">
<input class="cbi-button cbi-button-apply" type="submit" value="Upload image" /> <input class="cbi-button cbi-button-apply" type="submit" value="Upload image" />
</div>
</div> </div>
</form> </form>
<% else %> <% else %>
<div class="error">Sorry. <p class="error">Auf diesem Gerät kann kein Upgrade durchgeführt werden.
OpenWrt does not support a system upgrade on this platform.<br /> Bitte führe das Upgrade manuell durch.</p>
You need to manually flash your device.</div>
<% end %> <% end %>
<% elseif step == 2 then %> <% elseif step == 2 then %>
<p> <p>
The flash image was uploaded. Die Firmwaredatei wurde übermittelt. Bitte vergleiche MD5-Checksumme
Below is the checksum and file size listed, und Dateigröße und klicke anschließend auf "Fortfahren".
compare them with the original file to ensure data integrity.<br /> </p>
Click "Proceed" below to start the flash procedure.
<% if flashsize > 0 and filesize > flashsize then %> <% if flashsize > 0 and filesize > flashsize then %>
<br /><br /> <p class="error">Die Firmware passt nicht in den Speicher des Gerätes.</p>
<div class="error">It appears that you try to <% end %>
flash an image that does not fit into the flash memory, please verify
the image file!</div>
<% end %>
<br /> <p>
<ul> <ul>
<li>Checksum: <code><%=checksum%></code></li> <li>md5sum: <code><%=checksum%></code></li>
<li>Size: <% <li>Größe: <%
function byte_format(byte) function byte_format(byte)
local suff = {"B", "KB", "MB", "GB", "TB"} local suff = {"B", "KB", "MB", "GB", "TB"}
for i=1, 5 do for i=1, 5 do
@ -93,20 +85,21 @@ $Id$
<form style="display:inline"> <form style="display:inline">
<input type="hidden" name="step" value="3" /> <input type="hidden" name="step" value="3" />
<input type="hidden" name="keepcfg" value="<%=keepconfig and "1" or "0"%>" /> <input type="hidden" name="keepcfg" value="<%=keepconfig and "1" or "0"%>" />
<input class="cbi-button cbi-button-apply" type="submit" value="Proceed" /> <input class="cbi-button cbi-button-apply" type="submit" value="Fortfahren" />
</form> </form>
<form style="display:inline"> <form style="display:inline">
<input type="hidden" name="step" value="1" /> <input type="hidden" name="step" value="1" />
<input type="hidden" name="keepcfg" value="<%=keepconfig and "1" or "0"%>" /> <input type="hidden" name="keepcfg" value="<%=keepconfig and "1" or "0"%>" />
<input class="cbi-button cbi-button-reset" type="submit" value="Cancel" /> <input class="cbi-button cbi-button-reset" type="submit" value="Abbrechen" />
</form> </form>
</div> </div>
<% elseif step == 3 then %> <% elseif step == 3 then %>
<p>The system is flashing now.<br /> <p>
DO NOT POWER OFF THE DEVICE!<br /> Die Firmware wird jetzt aktualisiert.
Wait a few minutes until you try to reconnect. <strong>UNTERBRECHE AUF KEINEN FALL DIE STROMVERSORGUNG!</strong>
It might be necessary to renew the address of your computer to reach the device Dieser Vorgang wird einige Minuten dauern. Anschließend startet
again, depending on your settings.</p> das Gerät automatisch neu.
</p>
<% end %> <% end %>
<%+footer%> <%+footer%>