modules: make most remaining hardcoded strings translatable, patch by "BasicXP" <basicxp@ubuntu.com>

This commit is contained in:
Jo-Philipp Wich 2012-08-14 13:08:18 +00:00
parent 2c844d42d8
commit a1415d7430
15 changed files with 76 additions and 76 deletions

View file

@ -13,7 +13,7 @@ $Id$
-%> -%>
<%+header%> <%+header%>
<h2><a id="content" name="content">404 Not Found</a></h2> <h2><a id="content" name="content">404 <%:Not Found%></a></h2>
<p>Sorry, the object you requested was not found.</p> <p><%:Sorry, the object you requested was not found.%></p>
<tt>Unable to dispatch: <%=luci.http.request.env.PATH_INFO%></tt> <tt><%:Unable to dispatch%>: <%=luci.http.request.env.PATH_INFO%></tt>
<%+footer%> <%+footer%>

View file

@ -13,7 +13,7 @@ $Id$
-%> -%>
<%+header%> <%+header%>
<h2><a id="content" name="content">500 Internal Server Error</a></h2> <h2><a id="content" name="content">500 <%:Internal Server Error%></a></h2>
<p>Sorry, the server encountered an unexpected error.</p> <p><%:Sorry, the server encountered an unexpected error.%></p>
<pre class="error500"><%=message%></pre> <pre class="error500"><%=message%></pre>
<%+footer%> <%+footer%>

View file

@ -66,17 +66,17 @@ $Id$
<div style="width:30%; float:left; text-align:center"> <div style="width:30%; float:left; text-align:center">
<input style="width: 50%" type="text" value="openwrt.org" name="ping" /> <input style="width: 50%" type="text" value="openwrt.org" name="ping" />
<input type="button" value="Ping" class="cbi-button cbi-button-apply" onclick="update_status(this.form.ping)" /> <input type="button" value="<%:Ping%>" class="cbi-button cbi-button-apply" onclick="update_status(this.form.ping)" />
</div> </div>
<div style="width:30%; float:left; text-align:center"> <div style="width:30%; float:left; text-align:center">
<input style="width: 50%" type="text" value="openwrt.org" name="traceroute" /> <input style="width: 50%" type="text" value="openwrt.org" name="traceroute" />
<input type="button" value="Traceroute" class="cbi-button cbi-button-apply" onclick="update_status(this.form.traceroute)" /> <input type="button" value="<%:Traceroute%>" class="cbi-button cbi-button-apply" onclick="update_status(this.form.traceroute)" />
</div> </div>
<div style="width:30%; float:left; text-align:center"> <div style="width:30%; float:left; text-align:center">
<input style="width: 50%" type="text" value="openwrt.org" name="nslookup" /> <input style="width: 50%" type="text" value="openwrt.org" name="nslookup" />
<input type="button" value="Nslookup" class="cbi-button cbi-button-apply" onclick="update_status(this.form.nslookup)" /> <input type="button" value="<%:Nslookup%>" class="cbi-button cbi-button-apply" onclick="update_status(this.form.nslookup)" />
</div> </div>
<br style="clear:both" /><br /> <br style="clear:both" /><br />

View file

@ -134,7 +134,7 @@ You may obtain a copy of the License at
if (ifc.type != 'tunnel') if (ifc.type != 'tunnel')
{ {
html += String.format('<strong><%:MAC Address%>:</strong> %s<br />', ifc.macaddr); html += String.format('<strong><%:MAC-Address%>:</strong> %s<br />', ifc.macaddr);
} }
html += String.format( html += String.format(

View file

@ -27,7 +27,7 @@
if (ifc.type != 'tunnel') if (ifc.type != 'tunnel')
{ {
html += String.format('<strong><%:MAC Address%>:</strong> %s<br />', ifc.macaddr); html += String.format('<strong><%:MAC-Address%>:</strong> %s<br />', ifc.macaddr);
} }
html += String.format( html += String.format(

View file

@ -105,13 +105,13 @@ $Id$
<% for i, net in ipairs(scanlist(3)) do net.encryption = net.encryption or { } %> <% for i, net in ipairs(scanlist(3)) do net.encryption = net.encryption or { } %>
<tr class="cbi-section-table-row cbi-rowstyle-<%=1 + ((i-1) % 2)%>"> <tr class="cbi-section-table-row cbi-rowstyle-<%=1 + ((i-1) % 2)%>">
<td class="cbi-value-field" style="width:16px; padding:3px"> <td class="cbi-value-field" style="width:16px; padding:3px">
<abbr title="Signal: <%=net.signal%> dB / Quality: <%=net.quality%>/<%=net.quality_max%>"> <abbr title="<%:Signal%>: <%=net.signal%> <%:dB%> / <%:Quality%>: <%=net.quality%>/<%=net.quality_max%>">
<img src="<%=guess_wifi_signal(net)%>" /><br /> <img src="<%=guess_wifi_signal(net)%>" /><br />
<small><%=percent_wifi_signal(net)%>%</small> <small><%=percent_wifi_signal(net)%>%</small>
</abbr> </abbr>
</td> </td>
<td class="cbi-value-field" style="vertical-align:middle; text-align:left; padding:3px"> <td class="cbi-value-field" style="vertical-align:middle; text-align:left; padding:3px">
<big><strong><%=net.ssid and utl.pcdata(net.ssid) or "<em>hidden</em>"%></strong></big><br /> <big><strong><%=net.ssid and utl.pcdata(net.ssid) or "<em>%s</em>" % translate("hidden")%></strong></big><br />
<strong>Channel:</strong> <%=net.channel%> | <strong>Channel:</strong> <%=net.channel%> |
<strong>Mode:</strong> <%=net.mode%> | <strong>Mode:</strong> <%=net.mode%> |
<strong>BSSID:</strong> <%=net.bssid%> | <strong>BSSID:</strong> <%=net.bssid%> |

View file

@ -43,7 +43,7 @@ $Id$
-- wl.o -- wl.o
if name == "wl" then if name == "wl" then
local name = "Broadcom 802.11%s Wireless Controller" % bands local name = translatef("Broadcom 802.11%s Wireless Controller", bands)
local nm = 0 local nm = 0
local fd = nixio.open("/proc/bus/pci/devices", "r") local fd = nixio.open("/proc/bus/pci/devices", "r")
@ -53,7 +53,7 @@ $Id$
if ln:match("wl$") then if ln:match("wl$") then
if nm == idx then if nm == idx then
local version = ln:match("^%S+%s+%S%S%S%S([0-9a-f]+)") local version = ln:match("^%S+%s+%S%S%S%S([0-9a-f]+)")
name = string.format( name = translatef(
"Broadcom BCM%04x 802.11 Wireless Controller", "Broadcom BCM%04x 802.11 Wireless Controller",
tonumber(version, 16) tonumber(version, 16)
) )
@ -71,23 +71,23 @@ $Id$
-- madwifi -- madwifi
elseif name == "ath" or name == "wifi" then elseif name == "ath" or name == "wifi" then
return "Atheros 802.11%s Wireless Controller" % bands return translatef("Atheros 802.11%s Wireless Controller", bands)
-- ralink -- ralink
elseif name == "ra" then elseif name == "ra" then
return "RaLink 802.11%s Wireless Controller" % bands return translatef("RaLink 802.11%s Wireless Controller", bands)
-- hermes -- hermes
elseif name == "eth" then elseif name == "eth" then
return "Hermes 802.11b Wireless Controller" return translate("Hermes 802.11b Wireless Controller")
-- hostap -- hostap
elseif name == "wlan" and fs.isdirectory("/proc/net/hostap/" .. ifname) then elseif name == "wlan" and fs.isdirectory("/proc/net/hostap/" .. ifname) then
return "Prism2/2.5/3 802.11b Wireless Controller" return translate("Prism2/2.5/3 802.11b Wireless Controller")
-- dunno yet -- dunno yet
else else
return "Generic 802.11%s Wireless Controller" % bands return translatef("Generic 802.11%s Wireless Controller", bands)
end end
end end
@ -204,7 +204,7 @@ $Id$
var sig = document.getElementById(iw.id + '-iw-signal'); var sig = document.getElementById(iw.id + '-iw-signal');
if (sig) if (sig)
sig.innerHTML = String.format( sig.innerHTML = String.format(
'<img src="%s" title="<%:Signal%>: %d dBm / <%:Noise%>: %d dBm" /><br />' + '<img src="%s" title="<%:Signal%>: %d <%:dBm%> / <%:Noise%>: %d <%:dBm%>" /><br />' +
'<small>%d%%</small>', icon, iw.signal, iw.noise, p '<small>%d%%</small>', icon, iw.signal, iw.noise, p
); );
@ -256,8 +256,8 @@ $Id$
{ {
if (is_assoc) if (is_assoc)
dev.innerHTML = String.format( dev.innerHTML = String.format(
'<strong><%:Channel%>:</strong> %s (%s GHz) | ' + '<strong><%:Channel%>:</strong> %s (%s <%:GHz%>) | ' +
'<strong><%:Bitrate%>:</strong> %s Mb/s', '<strong><%:Bitrate%>:</strong> %s <%:Mbit/s%>',
iw.channel ? iw.channel : '?', iw.channel ? iw.channel : '?',
iw.frequency ? iw.frequency : '?', iw.frequency ? iw.frequency : '?',
iw.bitrate ? iw.bitrate : '?' iw.bitrate ? iw.bitrate : '?'
@ -296,7 +296,7 @@ $Id$
icon = "<%=resource%>/icons/signal-75-100.png"; icon = "<%=resource%>/icons/signal-75-100.png";
tr.insertCell(-1).innerHTML = String.format( tr.insertCell(-1).innerHTML = String.format(
'<img src="%s" title="<%:Signal%>: %d dBm / <%:Noise%>: %d dBm" />', '<img src="%s" title="<%:Signal%>: %d <%:dBm%> / <%:Noise%>: %d <%:dBm%>" />',
icon, assoclist[j].signal, assoclist[j].noise icon, assoclist[j].signal, assoclist[j].noise
); );
@ -306,17 +306,17 @@ $Id$
tr.insertCell(-1).innerHTML = arptable[assoclist[j].bssid] tr.insertCell(-1).innerHTML = arptable[assoclist[j].bssid]
? arptable[assoclist[j].bssid] : '?'; ? arptable[assoclist[j].bssid] : '?';
tr.insertCell(-1).innerHTML = String.format('%d dBm', assoclist[j].signal); tr.insertCell(-1).innerHTML = String.format('%d <%:dBm%>', assoclist[j].signal);
tr.insertCell(-1).innerHTML = String.format('%d dBm', assoclist[j].noise); tr.insertCell(-1).innerHTML = String.format('%d <%:dBm%>', assoclist[j].noise);
tr.insertCell(-1).innerHTML = (assoclist[j].rx_mcs > -1) tr.insertCell(-1).innerHTML = (assoclist[j].rx_mcs > -1)
? String.format('%.1f Mbit/s, MCS %d, %dMHz', assoclist[j].rx_rate / 1000, assoclist[j].rx_mcs, assoclist[j].rx_40mhz ? 40 : 20) ? String.format('%.1f <%:Mbit/s%>, MCS %d, %d<%:MHz%>', assoclist[j].rx_rate / 1000, assoclist[j].rx_mcs, assoclist[j].rx_40mhz ? 40 : 20)
: String.format('%.1f Mbit/s', assoclist[j].rx_rate / 1000) : String.format('%.1f <%:Mbit/s%>', assoclist[j].rx_rate / 1000)
; ;
tr.insertCell(-1).innerHTML = (assoclist[j].tx_mcs > -1) tr.insertCell(-1).innerHTML = (assoclist[j].tx_mcs > -1)
? String.format('%.1f Mbit/s, MCS %d, %dMHz', assoclist[j].tx_rate / 1000, assoclist[j].tx_mcs, assoclist[j].tx_40mhz ? 40 : 20) ? String.format('%.1f <%:Mbit/s%>, MCS %d, %d<%:MHz%>', assoclist[j].tx_rate / 1000, assoclist[j].tx_mcs, assoclist[j].tx_40mhz ? 40 : 20)
: String.format('%.1f Mbit/s', assoclist[j].tx_rate / 1000) : String.format('%.1f <%:Mbit/s%>', assoclist[j].tx_rate / 1000)
; ;
rowstyle = (rowstyle == 1) ? 2 : 1; rowstyle = (rowstyle == 1) ? 2 : 1;
@ -414,8 +414,8 @@ $Id$
<tr class="cbi-section-table-titles"> <tr class="cbi-section-table-titles">
<th class="cbi-section-table-cell"></th> <th class="cbi-section-table-cell"></th>
<th class="cbi-section-table-cell"><%:SSID%></th> <th class="cbi-section-table-cell"><%:SSID%></th>
<th class="cbi-section-table-cell"><%:MAC%></th> <th class="cbi-section-table-cell"><%:MAC-Address%></th>
<th class="cbi-section-table-cell"><%:Address%></th> <th class="cbi-section-table-cell"><%:IPv4-Address%></th>
<th class="cbi-section-table-cell"><%:Signal%></th> <th class="cbi-section-table-cell"><%:Signal%></th>
<th class="cbi-section-table-cell"><%:Noise%></th> <th class="cbi-section-table-cell"><%:Noise%></th>
<th class="cbi-section-table-cell"><%:RX Rate%></th> <th class="cbi-section-table-cell"><%:RX Rate%></th>

View file

@ -27,7 +27,7 @@
var s = document.getElementById('<%=self.option%>-iw-signal'); var s = document.getElementById('<%=self.option%>-iw-signal');
if (s) if (s)
s.innerHTML = String.format( s.innerHTML = String.format(
'<img src="%s" title="<%:Signal%>: %d dBm / <%:Noise%>: %d dBm" /><br />' + '<img src="%s" title="<%:Signal%>: %d <%:dBm%> / <%:Noise%>: %d <%:dBm%>" /><br />' +
'<small>%d%%</small>', icon, iw.signal, iw.noise, p '<small>%d%%</small>', icon, iw.signal, iw.noise, p
); );
@ -38,11 +38,11 @@
'<strong><%:SSID%>:</strong> %h<br />' + '<strong><%:SSID%>:</strong> %h<br />' +
'<strong><%:BSSID%>:</strong> %s | ' + '<strong><%:BSSID%>:</strong> %s | ' +
'<strong><%:Encryption%>:</strong> %s<br />' + '<strong><%:Encryption%>:</strong> %s<br />' +
'<strong><%:Channel%>:</strong> %d (%.3f GHz) | ' + '<strong><%:Channel%>:</strong> %d (%.3f <%:GHz%>) | ' +
'<strong><%:Tx-Power%>:</strong> %d dBm<br />' + '<strong><%:Tx-Power%>:</strong> %d <%:dBm%><br />' +
'<strong><%:Signal%>:</strong> %d dBm | ' + '<strong><%:Signal%>:</strong> %d <%:dBm%> | ' +
'<strong><%:Noise%>:</strong> %d dBm<br />' + '<strong><%:Noise%>:</strong> %d <%:dBm%><br />' +
'<strong><%:Bit Rate%>:</strong> %.1f MBit/s | ' + '<strong><%:Bitrate%>:</strong> %.1f <%:Mbit/s%> | ' +
'<strong><%:Country%>:</strong> %s', '<strong><%:Country%>:</strong> %s',
iw.mode, iw.ssid, iw.bssid, iw.mode, iw.ssid, iw.bssid,
iw.encryption ? iw.encryption : '<%:None%>', iw.encryption ? iw.encryption : '<%:None%>',

View file

@ -71,25 +71,25 @@ $Id$
function bandwidth_label(bytes, br) function bandwidth_label(bytes, br)
{ {
var uby = 'KByte'; var uby = '<%:kB/s%>';
var kby = (bytes / 1024); var kby = (bytes / 1024);
if (kby >= 1024) if (kby >= 1024)
{ {
uby = 'MByte'; uby = '<%:MB/s%>';
kby = kby / 1024; kby = kby / 1024;
} }
var ubi = 'KBit'; var ubi = '<%:kbit/s%>';
var kbi = (bytes * 8 / 1024); var kbi = (bytes * 8 / 1024);
if (kbi >= 1024) if (kbi >= 1024)
{ {
ubi = 'MBit'; ubi = '<%:Mbit/s%>';
kbi = kbi / 1024; kbi = kbi / 1024;
} }
return String.format("%f %s/s%s(%f %s/s)", return String.format("%f %s%s(%f %s)",
kbi.toFixed(2), ubi, kbi.toFixed(2), ubi,
br ? '<br />' : ' ', br ? '<br />' : ' ',
kby.toFixed(2), uby kby.toFixed(2), uby
@ -288,23 +288,23 @@ $Id$
<table style="width:100%; table-layout:fixed" cellspacing="5"> <table style="width:100%; table-layout:fixed" cellspacing="5">
<tr> <tr>
<td style="text-align:right; vertical-align:top"><strong style="border-bottom:2px solid blue"><%:Inbound:%></strong></td> <td style="text-align:right; vertical-align:top"><strong style="border-bottom:2px solid blue"><%:Inbound:%></strong></td>
<td id="rx_bw_cur">0 kbit/s<br />(0 KB/s)</td> <td id="rx_bw_cur">0 <%:kbit/s%><br />(0 <%:kB/s%>)</td>
<td style="text-align:right; vertical-align:top"><strong><%:Average:%></strong></td> <td style="text-align:right; vertical-align:top"><strong><%:Average:%></strong></td>
<td id="rx_bw_avg">0 kbit/s<br />(0 KB/s)</td> <td id="rx_bw_avg">0 <%:kbit/s%><br />(0 <%:kB/s%>)</td>
<td style="text-align:right; vertical-align:top"><strong><%:Peak:%></strong></td> <td style="text-align:right; vertical-align:top"><strong><%:Peak:%></strong></td>
<td id="rx_bw_peak">0 kbit/s<br />(0 KB/s)</td> <td id="rx_bw_peak">0 <%:kbit/s%><br />(0 <%:kB/s%>)</td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right; vertical-align:top"><strong style="border-bottom:2px solid green"><%:Outbound:%></strong></td> <td style="text-align:right; vertical-align:top"><strong style="border-bottom:2px solid green"><%:Outbound:%></strong></td>
<td id="tx_bw_cur">0 kbit/s<br />(0 KB/s)</td> <td id="tx_bw_cur">0 <%:kbit/s%><br />(0 <%:kB/s%>)</td>
<td style="text-align:right; vertical-align:top"><strong><%:Average:%></strong></td> <td style="text-align:right; vertical-align:top"><strong><%:Average:%></strong></td>
<td id="tx_bw_avg">0 kbit/s<br />(0 KB/s)</td> <td id="tx_bw_avg">0 <%:kbit/s%><br />(0 <%:kB/s%>)</td>
<td style="text-align:right; vertical-align:top"><strong><%:Peak:%></strong></td> <td style="text-align:right; vertical-align:top"><strong><%:Peak:%></strong></td>
<td id="tx_bw_peak">0 kbit/s<br />(0 KB/s)</td> <td id="tx_bw_peak">0 <%:kbit/s%><br />(0 <%:kB/s%>)</td>
</tr> </tr>
</table> </table>

View file

@ -302,8 +302,8 @@ $Id$
'</td><td style="text-align:left; padding:3px"><small>' + '</td><td style="text-align:left; padding:3px"><small>' +
'<strong><%:SSID%>:</strong> <a href="%s">%h</a><br />' + '<strong><%:SSID%>:</strong> <a href="%s">%h</a><br />' +
'<strong><%:Mode%>:</strong> %s<br />' + '<strong><%:Mode%>:</strong> %s<br />' +
'<strong><%:Channel%>:</strong> %d (%.3f GHz)<br />' + '<strong><%:Channel%>:</strong> %d (%.3f <%:GHz%>)<br />' +
'<strong><%:Bitrate%>:</strong> %s Mb/s<br />', '<strong><%:Bitrate%>:</strong> %s <%:Mbit/s%><br />',
icon, net.signal, net.noise, icon, net.signal, net.noise,
net.quality, net.quality,
net.link, net.ssid, net.link, net.ssid,
@ -386,7 +386,7 @@ $Id$
icon = "<%=resource%>/icons/signal-75-100.png"; icon = "<%=resource%>/icons/signal-75-100.png";
tr.insertCell(-1).innerHTML = String.format( tr.insertCell(-1).innerHTML = String.format(
'<img src="%s" title="<%:Signal%>: %d dBm / <%:Noise%>: %d dBm" />', '<img src="%s" title="<%:Signal%>: %d <%:dBm%> / <%:Noise%>: %d <%:dBm%>" />',
icon, assoclist[i].signal, assoclist[i].noise icon, assoclist[i].signal, assoclist[i].noise
); );
@ -398,17 +398,17 @@ $Id$
assoclist[i].name assoclist[i].name
); );
tr.insertCell(-1).innerHTML = String.format('%d dBm', assoclist[i].signal); tr.insertCell(-1).innerHTML = String.format('%d <%:dBm%>', assoclist[i].signal);
tr.insertCell(-1).innerHTML = String.format('%d dBm', assoclist[i].noise); tr.insertCell(-1).innerHTML = String.format('%d <%:dBm%>', assoclist[i].noise);
tr.insertCell(-1).innerHTML = (assoclist[i].rx_mcs > -1) tr.insertCell(-1).innerHTML = (assoclist[i].rx_mcs > -1)
? String.format('%.1f Mbit/s, MCS %d, %dMHz', assoclist[i].rx_rate / 1000, assoclist[i].rx_mcs, assoclist[i].rx_40mhz ? 40 : 20) ? String.format('%.1f <%:Mbit/s%>, MCS %d, %d<%:MHz%>', assoclist[i].rx_rate / 1000, assoclist[i].rx_mcs, assoclist[i].rx_40mhz ? 40 : 20)
: String.format('%.1f Mbit/s', assoclist[i].rx_rate / 1000) : String.format('%.1f <%:Mbit/s%>', assoclist[i].rx_rate / 1000)
; ;
tr.insertCell(-1).innerHTML = (assoclist[i].tx_mcs > -1) tr.insertCell(-1).innerHTML = (assoclist[i].tx_mcs > -1)
? String.format('%.1f Mbit/s, MCS %d, %dMHz', assoclist[i].tx_rate / 1000, assoclist[i].tx_mcs, assoclist[i].tx_40mhz ? 40 : 20) ? String.format('%.1f <%:Mbit/s%>, MCS %d, %d<%:MHz%>', assoclist[i].tx_rate / 1000, assoclist[i].tx_mcs, assoclist[i].tx_40mhz ? 40 : 20)
: String.format('%.1f Mbit/s', assoclist[i].tx_rate / 1000) : String.format('%.1f <%:Mbit/s%>', assoclist[i].tx_rate / 1000)
; ;
} }
@ -438,23 +438,23 @@ $Id$
if (e = document.getElementById('memtotal')) if (e = document.getElementById('memtotal'))
e.innerHTML = progressbar( e.innerHTML = progressbar(
(info.memfree + info.membuffers + info.memcached) + " kB", (info.memfree + info.membuffers + info.memcached) + " <%:kB%>",
info.memtotal + " kB" info.memtotal + " <%:kB%>"
); );
if (e = document.getElementById('memfree')) if (e = document.getElementById('memfree'))
e.innerHTML = progressbar( e.innerHTML = progressbar(
info.memfree + " kB", info.memtotal + " kB" info.memfree + " <%:kB%>", info.memtotal + " <%:kB%>"
); );
if (e = document.getElementById('memcache')) if (e = document.getElementById('memcache'))
e.innerHTML = progressbar( e.innerHTML = progressbar(
info.memcached + " kB", info.memtotal + " kB" info.memcached + " <%:kB%>", info.memtotal + " <%:kB%>"
); );
if (e = document.getElementById('membuff')) if (e = document.getElementById('membuff'))
e.innerHTML = progressbar( e.innerHTML = progressbar(
info.membuffers + " kB", info.memtotal + " kB" info.membuffers + " <%:kB%>", info.memtotal + " <%:kB%>"
); );
if (e = document.getElementById('conns')) if (e = document.getElementById('conns'))

View file

@ -286,14 +286,14 @@ $Id$
function wireless_label(dbm, noise) function wireless_label(dbm, noise)
{ {
if (noise) if (noise)
return String.format("%d dBm (SNR %d dBm)", noise_floor + dbm - 255, dbm - noise); return String.format("%d <%:dBm%> (SNR %d <%:dBm%>)", noise_floor + dbm - 255, dbm - noise);
else else
return String.format("%d dBm", noise_floor + dbm - 255); return String.format("%d <%:dBm%>", noise_floor + dbm - 255);
} }
function rate_label(mbit) function rate_label(mbit)
{ {
return String.format("%d MBit/s", mbit); return String.format("%d <%:Mbit/s%>", mbit);
} }
label_25.firstChild.data = wireless_label(1.1 * 0.25 * data_max); label_25.firstChild.data = wireless_label(1.1 * 0.25 * data_max);
@ -338,23 +338,23 @@ $Id$
<table style="width:100%; table-layout:fixed" cellspacing="5"> <table style="width:100%; table-layout:fixed" cellspacing="5">
<tr> <tr>
<td style="text-align:right; vertical-align:top"><strong style="border-bottom:2px solid blue"><%:Signal:%></strong></td> <td style="text-align:right; vertical-align:top"><strong style="border-bottom:2px solid blue"><%:Signal:%></strong></td>
<td id="rssi_bw_cur">0 dBm</td> <td id="rssi_bw_cur">0 <%:dBm%></td>
<td style="text-align:right; vertical-align:top"><strong><%:Average:%></strong></td> <td style="text-align:right; vertical-align:top"><strong><%:Average:%></strong></td>
<td id="rssi_bw_avg">0 dBm</td> <td id="rssi_bw_avg">0 <%:dBm%></td>
<td style="text-align:right; vertical-align:top"><strong><%:Peak:%></strong></td> <td style="text-align:right; vertical-align:top"><strong><%:Peak:%></strong></td>
<td id="rssi_bw_peak">0 dBm</td> <td id="rssi_bw_peak">0 <%:dBm%></td>
</tr> </tr>
<tr> <tr>
<td style="text-align:right; vertical-align:top"><strong style="border-bottom:2px solid red"><%:Noise:%></strong></td> <td style="text-align:right; vertical-align:top"><strong style="border-bottom:2px solid red"><%:Noise:%></strong></td>
<td id="noise_bw_cur">0 dBm</td> <td id="noise_bw_cur">0 <%:dBm%></td>
<td style="text-align:right; vertical-align:top"><strong><%:Average:%></strong></td> <td style="text-align:right; vertical-align:top"><strong><%:Average:%></strong></td>
<td id="noise_bw_avg">0 dBm</td> <td id="noise_bw_avg">0 <%:dBm%></td>
<td style="text-align:right; vertical-align:top"><strong><%:Peak:%></strong></td> <td style="text-align:right; vertical-align:top"><strong><%:Peak:%></strong></td>
<td id="noise_bw_peak">0 dBm</td> <td id="noise_bw_peak">0 <%:dBm%></td>
</tr> </tr>
</table> </table>

View file

@ -15,7 +15,7 @@ $Id$
<%+header%> <%+header%>
<h2><a id="content" name="content"><%:Configuration / Apply%></a></h2> <h2><a id="content" name="content"><%:Configuration%> / <%:Apply%></a></h2>
<% if changes then %> <% if changes then %>
<%+cbi/apply_xhr%> <%+cbi/apply_xhr%>

View file

@ -15,7 +15,7 @@ $Id$
<%+header%> <%+header%>
<h2><a id="content" name="content"><%:Configuration / Changes%></a></h2> <h2><a id="content" name="content"><%:Configuration%> / <%:Changes%></a></h2>
<% if changes then %> <% if changes then %>
<%+admin_uci/changelog%> <%+admin_uci/changelog%>

View file

@ -15,7 +15,7 @@ $Id$
<%+header%> <%+header%>
<h2><a id="content" name="content"><%:Configuration / Revert%></a></h2> <h2><a id="content" name="content"><%:Configuration%> / <%:Revert%></a></h2>
<% if changes then %> <% if changes then %>
<%+cbi/apply_xhr%> <%+cbi/apply_xhr%>

View file

@ -14,7 +14,7 @@ $Id$
-%> -%>
<h2><a id="content" name="content"><%:Hello!%></a></h2> <h2><a id="content" name="content"><%:Hello!%></a></h2>
<p><%_This is the administration area of <abbr title="Lua Configuration Interface">LuCI</abbr>.%></p> <p><%_This is the administration area of <abbr title="Lua Configuration Interface">LuCI</abbr>.%></p>
<p><%_<abbr title="Lua Configuration Interface">LuCI</abbr> is a free, flexible, and user friendly graphical interface for configuring OpenWrt Kamikaze.%><br /> <p><%_<abbr title="Lua Configuration Interface">LuCI</abbr> is a free, flexible, and user friendly graphical interface for configuring OpenWrt.%><br />
<%:On the following pages you can adjust all important settings of this device.%></p> <%:On the following pages you can adjust all important settings of this device.%></p>
<p><%:As we always want to improve this interface we are looking forward to your feedback and suggestions.%></p> <p><%:As we always want to improve this interface we are looking forward to your feedback and suggestions.%></p>
<p><%:And now have fun with your OpenWrt device!%></p> <p><%:And now have fun with your OpenWrt device!%></p>