diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-31 15:54:11 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-31 15:54:11 +0000 |
commit | 7c765875884d6866c53b63757731b079bace2e9b (patch) | |
tree | db436df0eaff7de048bca26a7e419aedeb4a08a4 /modules/admin-mini/luasrc/model/cbi/mini | |
parent | dc7138e424dfd454951ed5ed4eeddbf842457e87 (diff) |
all: change most translate statements to new format, some need manual cleanup
Diffstat (limited to 'modules/admin-mini/luasrc/model/cbi/mini')
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/dhcp.lua | 20 | ||||
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/luci.lua | 8 | ||||
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/network.lua | 56 | ||||
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/passwd.lua | 10 | ||||
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/system.lua | 18 | ||||
-rw-r--r-- | modules/admin-mini/luasrc/model/cbi/mini/wifi.lua | 82 |
6 files changed, 97 insertions, 97 deletions
diff --git a/modules/admin-mini/luasrc/model/cbi/mini/dhcp.lua b/modules/admin-mini/luasrc/model/cbi/mini/dhcp.lua index 5817a93d77..8c405ca599 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/dhcp.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/dhcp.lua @@ -31,12 +31,12 @@ enable = s:option(ListValue, "ignore", translate("enable"), "") enable:value(0, translate("enable")) enable:value(1, translate("disable")) -start = s:option(Value, "start", translate("m_n_d_firstaddress")) +start = s:option(Value, "start", translate("First leased address")) start.rmempty = true start:depends("ignore", "0") -limit = s:option(Value, "limit", translate("m_n_d_numleases"), "") +limit = s:option(Value, "limit", translate("Number of leased addresses"), "") limit:depends("ignore", "0") function limit.cfgvalue(self, section) @@ -60,7 +60,7 @@ time.rmempty = true -m2 = Map("luci_ethers", translate("dhcp_leases")) +m2 = Map("luci_ethers", translate("Leases")) local leasefn, leasefp, leases uci:foreach("dhcp", "dnsmasq", @@ -77,25 +77,25 @@ if leasefp then end if leases then - v = m2:section(Table, leases, translate("dhcp_leases_active")) - ip = v:option(DummyValue, 3, translate("ipaddress")) + v = m2:section(Table, leases, translate("Active Leases")) + ip = v:option(DummyValue, 3, translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address")) - mac = v:option(DummyValue, 2, translate("macaddress")) + mac = v:option(DummyValue, 2, translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address")) - ltime = v:option(DummyValue, 1, translate("dhcp_timeremain")) + ltime = v:option(DummyValue, 1, translate("Leasetime remaining")) function ltime.cfgvalue(self, ...) local value = DummyValue.cfgvalue(self, ...) return wa.date_format(os.difftime(tonumber(value), os.time())) end end -s = m2:section(TypedSection, "static_lease", translate("luci_ethers")) +s = m2:section(TypedSection, "static_lease", translate("Static Leases")) s.addremove = true s.anonymous = true s.template = "cbi/tblsection" -mac = s:option(Value, "macaddr", translate("macaddress")) -ip = s:option(Value, "ipaddr", translate("ipaddress")) +mac = s:option(Value, "macaddr", translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address")) +ip = s:option(Value, "ipaddr", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address")) sys.net.arptable(function(entry) ip:value(entry["IP address"]) mac:value( diff --git a/modules/admin-mini/luasrc/model/cbi/mini/luci.lua b/modules/admin-mini/luasrc/model/cbi/mini/luci.lua index 28efad921a..58755fde74 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/luci.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/luci.lua @@ -16,7 +16,7 @@ $Id$ require "luci.config" local fs = require "nixio.fs" -m = Map("luci", translate("webui"), translate("a_i_luci1")) +m = Map("luci", translate("Web <abbr title=\"User Interface\">UI</abbr>"), translate("Here you can customize the settings and the functionality of <abbr title=\"Lua Configuration Interface\">LuCI</abbr>.")) -- force reload of global luci config namespace to reflect the changes function m.commit_handler(self) @@ -25,9 +25,9 @@ function m.commit_handler(self) end -c = m:section(NamedSection, "main", "core", translate("general")) +c = m:section(NamedSection, "main", "core", translate("General")) -l = c:option(ListValue, "lang", translate("language")) +l = c:option(ListValue, "lang", translate("Language")) l:value("auto") local i18ndir = luci.i18n.i18ndir .. "default." @@ -38,7 +38,7 @@ for k, v in luci.util.kspairs(luci.config.languages) do end end -t = c:option(ListValue, "mediaurlbase", translate("design")) +t = c:option(ListValue, "mediaurlbase", translate("Design")) for k, v in pairs(luci.config.themes) do if k:sub(1, 1) ~= "." then t:value(v, k) diff --git a/modules/admin-mini/luasrc/model/cbi/mini/network.lua b/modules/admin-mini/luasrc/model/cbi/mini/network.lua index 14414e999e..43ad212cc3 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/network.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/network.lua @@ -31,14 +31,14 @@ for k, v in pairs(network) do end end -m = Map("network", translate("network")) -s = m:section(Table, ifaces, translate("status")) +m = Map("network", translate("Network")) +s = m:section(Table, ifaces, translate("Status")) s.parse = function() end -s:option(DummyValue, ".name", translate("network")) +s:option(DummyValue, ".name", translate("Network")) hwaddr = s:option(DummyValue, "_hwaddr", - translate("network_interface_hwaddr"), translate("network_interface_hwaddr_desc")) + translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address"), translate("Hardware Address")) function hwaddr.cfgvalue(self, section) local ix = self.map:get(section, "ifname") or "" return fs.readfile("/sys/class/net/" .. ix .. "/address") @@ -47,13 +47,13 @@ function hwaddr.cfgvalue(self, section) end -s:option(DummyValue, "ipaddr", translate("ipaddress")) +s:option(DummyValue, "ipaddr", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address")) -s:option(DummyValue, "netmask", translate("netmask")) +s:option(DummyValue, "netmask", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Netmask")) txrx = s:option(DummyValue, "_txrx", - translate("network_interface_txrx"), translate("network_interface_txrx_desc")) + translate("Traffic"), translate("transmitted / received")) function txrx.cfgvalue(self, section) local ix = self.map:get(section, "ifname") @@ -68,7 +68,7 @@ function txrx.cfgvalue(self, section) end errors = s:option(DummyValue, "_err", - translate("network_interface_err"), translate("network_interface_err_desc")) + translate("Errors"), translate("TX / RX")) function errors.cfgvalue(self, section) local ix = self.map:get(section, "ifname") @@ -84,28 +84,28 @@ end -s = m:section(NamedSection, "lan", "interface", translate("m_n_local")) +s = m:section(NamedSection, "lan", "interface", translate("Local Network")) s.addremove = false -s:option(Value, "ipaddr", translate("ipaddress")) +s:option(Value, "ipaddr", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address")) -nm = s:option(Value, "netmask", translate("netmask")) +nm = s:option(Value, "netmask", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Netmask")) nm:value("255.255.255.0") nm:value("255.255.0.0") nm:value("255.0.0.0") -gw = s:option(Value, "gateway", translate("gateway") .. translate("cbi_optional")) +gw = s:option(Value, "gateway", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Gateway") .. translate(" (optional)")) gw.rmempty = true -dns = s:option(Value, "dns", translate("dnsserver") .. translate("cbi_optional")) +dns = s:option(Value, "dns", translate("<abbr title=\"Domain Name System\">DNS</abbr>-Server") .. translate(" (optional)")) dns.rmempty = true -s = m:section(NamedSection, "wan", "interface", translate("m_n_inet")) +s = m:section(NamedSection, "wan", "interface", translate("Internet Connection")) s.addremove = false -p = s:option(ListValue, "proto", translate("protocol")) +p = s:option(ListValue, "proto", translate("Protocol")) p.override_values = true p:value("none", "disabled") -p:value("static", translate("manual", "manual")) -p:value("dhcp", translate("automatic", "automatic")) +p:value("static", translate("manual")) +p:value("dhcp", translate("automatic")) if has_pppoe then p:value("pppoe", "PPPoE") end if has_pptp then p:value("pptp", "PPTP") end @@ -120,29 +120,29 @@ function p.write(self, section, value) end if not ( has_pppoe and has_pptp ) then - p.description = translate("network_interface_prereq_mini") + p.description = translate("You need to install \"ppp-mod-pppoe\" for PPPoE or \"pptp\" for PPtP support") end -ip = s:option(Value, "ipaddr", translate("ipaddress")) +ip = s:option(Value, "ipaddr", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Address")) ip:depends("proto", "static") -nm = s:option(Value, "netmask", translate("netmask")) +nm = s:option(Value, "netmask", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Netmask")) nm:depends("proto", "static") -gw = s:option(Value, "gateway", translate("gateway")) +gw = s:option(Value, "gateway", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Gateway")) gw:depends("proto", "static") gw.rmempty = true -dns = s:option(Value, "dns", translate("dnsserver")) +dns = s:option(Value, "dns", translate("<abbr title=\"Domain Name System\">DNS</abbr>-Server")) dns:depends("proto", "static") dns.rmempty = true -usr = s:option(Value, "username", translate("username")) +usr = s:option(Value, "username", translate("Username")) usr:depends("proto", "pppoe") usr:depends("proto", "pptp") -pwd = s:option(Value, "password", translate("password")) +pwd = s:option(Value, "password", translate("Password")) pwd.password = true pwd:depends("proto", "pppoe") pwd:depends("proto", "pptp") @@ -152,7 +152,7 @@ pwd:depends("proto", "pptp") -- This cures some cancer for providers with pre-war routers if fs.access("/etc/config/firewall") then mssfix = s:option(Flag, "_mssfix", - translate("m_n_mssfix"), translate("m_n_mssfix_desc")) + translate("Clamp Segment Size"), translate("Fixes problems with unreachable websites, submitting forms or other unexpected behaviour for some ISPs.")) mssfix.rmempty = false function mssfix.cfgvalue(self) @@ -175,19 +175,19 @@ if fs.access("/etc/config/firewall") then end end -kea = s:option(Flag, "keepalive", translate("m_n_keepalive")) +kea = s:option(Flag, "keepalive", translate("automatically reconnect")) kea:depends("proto", "pppoe") kea:depends("proto", "pptp") kea.rmempty = true kea.enabled = "10" -cod = s:option(Value, "demand", translate("m_n_dialondemand"), "s") +cod = s:option(Value, "demand", translate("disconnect when idle for"), "s") cod:depends("proto", "pppoe") cod:depends("proto", "pptp") cod.rmempty = true -srv = s:option(Value, "server", translate("m_n_pptp_server")) +srv = s:option(Value, "server", translate("<abbr title=\"Point-to-Point Tunneling Protocol\">PPTP</abbr>-Server")) srv:depends("proto", "pptp") srv.rmempty = true diff --git a/modules/admin-mini/luasrc/model/cbi/mini/passwd.lua b/modules/admin-mini/luasrc/model/cbi/mini/passwd.lua index dff5aeb7b6..6f13bb0fc8 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/passwd.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/passwd.lua @@ -12,13 +12,13 @@ You may obtain a copy of the License at $Id$ ]]-- -f = SimpleForm("password", translate("a_s_changepw"), translate("a_s_changepw1")) +f = SimpleForm("password", translate("Admin Password"), translate("Change the password of the system administrator (User <code>root</code>)")) -pw1 = f:field(Value, "pw1", translate("password")) +pw1 = f:field(Value, "pw1", translate("Password")) pw1.password = true pw1.rmempty = false -pw2 = f:field(Value, "pw2", translate("confirmation")) +pw2 = f:field(Value, "pw2", translate("Confirmation")) pw2.password = true pw2.rmempty = false @@ -31,9 +31,9 @@ function f.handle(self, state, data) local stat = luci.sys.user.setpasswd("root", data.pw1) == 0 if stat then - f.message = translate("a_s_changepw_changed") + f.message = translate("Password successfully changed") else - f.errmessage = translate("unknownerror") + f.errmessage = translate("Unknown Error") end data.pw1 = nil diff --git a/modules/admin-mini/luasrc/model/cbi/mini/system.lua b/modules/admin-mini/luasrc/model/cbi/mini/system.lua index 90ee790831..ac11abe9c9 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/system.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/system.lua @@ -17,7 +17,7 @@ require("luci.sys.zoneinfo") require("luci.tools.webadmin") -m = Map("system", translate("system"), translate("a_s_desc")) +m = Map("system", translate("System"), translate("Here you can configure the basic aspects of your device like its hostname or the timezone.")) s = m:section(TypedSection, "system", "") s.anonymous = true @@ -27,14 +27,14 @@ s.addremove = false local system, model, memtotal, memcached, membuffers, memfree = luci.sys.sysinfo() local uptime = luci.sys.uptime() -s:option(DummyValue, "_system", translate("system")).value = system -s:option(DummyValue, "_cpu", translate("m_i_processor")).value = model +s:option(DummyValue, "_system", translate("System")).value = system +s:option(DummyValue, "_cpu", translate("Processor")).value = model local load1, load5, load15 = luci.sys.loadavg() -s:option(DummyValue, "_la", translate("load")).value = +s:option(DummyValue, "_la", translate("Load")).value = string.format("%.2f, %.2f, %.2f", load1, load5, load15) -s:option(DummyValue, "_memtotal", translate("m_i_memory")).value = +s:option(DummyValue, "_memtotal", translate("Memory")).value = string.format("%.2f MB (%.0f%% %s, %.0f%% %s, %.0f%% %s)", tonumber(memtotal) / 1024, 100 * memcached / memtotal, @@ -45,13 +45,13 @@ s:option(DummyValue, "_memtotal", translate("m_i_memory")).value = tostring(translate("mem_free", "")) ) -s:option(DummyValue, "_systime", translate("m_i_systemtime")).value = +s:option(DummyValue, "_systime", translate("Local Time")).value = os.date("%c") -s:option(DummyValue, "_uptime", translate("m_i_uptime")).value = +s:option(DummyValue, "_uptime", translate("Uptime")).value = luci.tools.webadmin.date_format(tonumber(uptime)) -hn = s:option(Value, "hostname", translate("hostname")) +hn = s:option(Value, "hostname", translate("Hostname")) function hn.write(self, section, value) Value.write(self, section, value) @@ -59,7 +59,7 @@ function hn.write(self, section, value) end -tz = s:option(ListValue, "zonename", translate("timezone")) +tz = s:option(ListValue, "zonename", translate("Timezone")) tz:value("UTC") for i, zone in ipairs(luci.sys.zoneinfo.TZ) do diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua index 765011a1f6..a062dff5c6 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua @@ -45,14 +45,14 @@ wlcursor:foreach("wireless", "wifi-device", -- Main Map -- -m = Map("wireless", translate("wifi"), translate("a_w_devices1")) +m = Map("wireless", translate("Wifi"), translate("Here you can configure installed wifi devices.")) m:chain("network") -- Status Table -- -s = m:section(Table, ifaces, translate("networks")) +s = m:section(Table, ifaces, translate("Networks")) -link = s:option(DummyValue, "_link", translate("link")) +link = s:option(DummyValue, "_link", translate("Link")) function link.cfgvalue(self, section) local ifname = self.map:get(section, "ifname") return wifidata[ifname] and wifidata[ifname]["Link Quality"] or "-" @@ -67,27 +67,27 @@ function bssid.cfgvalue(self, section) or wifidata[ifname]["Access Point"])) or "-" end -channel = s:option(DummyValue, "channel", translate("channel")) +channel = s:option(DummyValue, "channel", translate("Channel")) function channel.cfgvalue(self, section) return wireless[self.map:get(section, "device")].channel end -protocol = s:option(DummyValue, "_mode", translate("protocol")) +protocol = s:option(DummyValue, "_mode", translate("Protocol")) function protocol.cfgvalue(self, section) local mode = wireless[self.map:get(section, "device")].mode return mode and "802." .. mode end -mode = s:option(DummyValue, "mode", translate("mode")) -encryption = s:option(DummyValue, "encryption", translate("iwscan_encr")) +mode = s:option(DummyValue, "mode", translate("Mode")) +encryption = s:option(DummyValue, "encryption", translate("<abbr title=\"Encrypted\">Encr.</abbr>")) -power = s:option(DummyValue, "_power", translate("power")) +power = s:option(DummyValue, "_power", translate("Power")) function power.cfgvalue(self, section) local ifname = self.map:get(section, "ifname") return wifidata[ifname] and wifidata[ifname]["Tx-Power"] or "-" end -scan = s:option(Button, "_scan", translate("scan")) +scan = s:option(Button, "_scan", translate("Scan")) scan.inputstyle = "find" function scan.cfgvalue(self, section) @@ -96,7 +96,7 @@ end -- WLAN-Scan-Table -- -t2 = m:section(Table, {}, translate("iwscan"), translate("iwscan1")) +t2 = m:section(Table, {}, translate("<abbr title=\"Wireless Local Area Network\">WLAN</abbr>-Scan"), translate("Wifi networks in your local environment")) function scan.write(self, section) m.autoapply = false @@ -108,26 +108,26 @@ end t2._render = t2.render t2.render = function() end -t2:option(DummyValue, "Quality", translate("iwscan_link")) +t2:option(DummyValue, "Quality", translate("Link")) essid = t2:option(DummyValue, "ESSID", "ESSID") function essid.cfgvalue(self, section) return self.map:get(section, "ESSID") end t2:option(DummyValue, "Address", "BSSID") -t2:option(DummyValue, "Mode", translate("mode")) -chan = t2:option(DummyValue, "channel", translate("channel")) +t2:option(DummyValue, "Mode", translate("Mode")) +chan = t2:option(DummyValue, "channel", translate("Channel")) function chan.cfgvalue(self, section) return self.map:get(section, "Channel") or self.map:get(section, "Frequency") or "-" end -t2:option(DummyValue, "Encryption key", translate("iwscan_encr")) +t2:option(DummyValue, "Encryption key", translate("<abbr title=\"Encrypted\">Encr.</abbr>")) -t2:option(DummyValue, "Signal level", translate("iwscan_signal")) +t2:option(DummyValue, "Signal level", translate("Signal")) -t2:option(DummyValue, "Noise level", translate("iwscan_noise")) +t2:option(DummyValue, "Noise level", translate("Noise")) @@ -137,7 +137,7 @@ end -- Config Section -- -s = m:section(NamedSection, wifidevs[1], "wifi-device", translate("devices")) +s = m:section(NamedSection, wifidevs[1], "wifi-device", translate("Devices")) s.addremove = false en = s:option(Flag, "disabled", translate("enable")) @@ -153,7 +153,7 @@ end local hwtype = m:get(wifidevs[1], "type") if hwtype == "atheros" then - mode = s:option(ListValue, "hwmode", translate("mode")) + mode = s:option(ListValue, "hwmode", translate("Mode")) mode.override_values = true mode:value("", "auto") mode:value("11b", "802.11b") @@ -164,19 +164,19 @@ if hwtype == "atheros" then end -ch = s:option(Value, "channel", translate("a_w_channel")) +ch = s:option(Value, "channel", translate("Channel")) for i=1, 14 do ch:value(i, i .. " (2.4 GHz)") end -s = m:section(TypedSection, "wifi-iface", translate("m_n_local")) +s = m:section(TypedSection, "wifi-iface", translate("Local Network")) s.anonymous = true s.addremove = false -s:option(Value, "ssid", translate("a_w_netid")) +s:option(Value, "ssid", translate("Network Name (<abbr title=\"Extended Service Set Identifier\">ESSID</abbr>)")) -bssid = s:option(Value, "bssid", translate("wifi_bssid")) +bssid = s:option(Value, "bssid", translate("<abbr title=\"Basic Service Set Identifier\">BSSID</abbr>")) local devs = {} luci.model.uci.cursor():foreach("wireless", "wifi-device", @@ -185,16 +185,16 @@ luci.model.uci.cursor():foreach("wireless", "wifi-device", end) if #devs > 1 then - device = s:option(DummyValue, "device", translate("device")) + device = s:option(DummyValue, "device", translate("Device")) else s.defaults.device = devs[1] end -mode = s:option(ListValue, "mode", translate("mode")) +mode = s:option(ListValue, "mode", translate("Mode")) mode.override_values = true -mode:value("ap", translate("m_w_ap")) -mode:value("adhoc", translate("m_w_adhoc")) -mode:value("sta", translate("m_w_client")) +mode:value("ap", translate("Provide (Access Point)")) +mode:value("adhoc", translate("Independent (Ad-Hoc)")) +mode:value("sta", translate("Join (Client)")) function mode.write(self, section, value) if value == "sta" then @@ -215,7 +215,7 @@ function mode.write(self, section, value) return ListValue.write(self, section, value) end -encr = s:option(ListValue, "encryption", translate("encryption")) +encr = s:option(ListValue, "encryption", translate("Encryption")) encr.override_values = true encr:value("none", "No Encryption") encr:value("wep", "WEP") @@ -253,7 +253,7 @@ elseif hwtype == "broadcom" then encr:value("psk+psk2", "WPA-PSK/WPA2-PSK Mixed Mode") end -key = s:option(Value, "key", translate("key")) +key = s:option(Value, "key", translate("Key")) key:depends("encryption", "wep") key:depends("encryption", "psk") key:depends("encryption", "psk2") @@ -264,44 +264,44 @@ key:depends({mode="ap", encryption="wpa2"}) key.rmempty = true key.password = true -server = s:option(Value, "server", translate("a_w_radiussrv")) +server = s:option(Value, "server", translate("RadiusServer")) server:depends({mode="ap", encryption="wpa"}) server:depends({mode="ap", encryption="wpa2"}) server.rmempty = true -port = s:option(Value, "port", translate("a_w_radiusport")) +port = s:option(Value, "port", translate("Radius-Port")) port:depends({mode="ap", encryption="wpa"}) port:depends({mode="ap", encryption="wpa2"}) port.rmempty = true if hwtype == "atheros" or hwtype == "mac80211" then - nasid = s:option(Value, "nasid", translate("a_w_nasid")) + nasid = s:option(Value, "nasid", translate("NAS ID")) nasid:depends({mode="ap", encryption="wpa"}) nasid:depends({mode="ap", encryption="wpa2"}) nasid.rmempty = true - eaptype = s:option(ListValue, "eap_type", translate("a_w_eaptype")) + eaptype = s:option(ListValue, "eap_type", translate("EAP-Method")) eaptype:value("TLS") eaptype:value("TTLS") eaptype:value("PEAP") eaptype:depends({mode="sta", encryption="wpa"}) eaptype:depends({mode="sta", encryption="wpa2"}) - cacert = s:option(FileUpload, "ca_cert", translate("a_w_cacert")) + cacert = s:option(FileUpload, "ca_cert", translate("Path to CA-Certificate")) cacert:depends({mode="sta", encryption="wpa"}) cacert:depends({mode="sta", encryption="wpa2"}) - privkey = s:option(FileUpload, "priv_key", translate("a_w_tlsprivkey")) + privkey = s:option(FileUpload, "priv_key", translate("Path to Private Key")) privkey:depends({mode="sta", eap_type="TLS", encryption="wpa2"}) privkey:depends({mode="sta", eap_type="TLS", encryption="wpa"}) - privkeypwd = s:option(Value, "priv_key_pwd", translate("a_w_tlsprivkeypwd")) + privkeypwd = s:option(Value, "priv_key_pwd", translate("Password of Private Key")) privkeypwd:depends({mode="sta", eap_type="TLS", encryption="wpa2"}) privkeypwd:depends({mode="sta", eap_type="TLS", encryption="wpa"}) - auth = s:option(Value, "auth", translate("a_w_peapauth")) + auth = s:option(Value, "auth", translate("Authentication")) auth:value("PAP") auth:value("CHAP") auth:value("MSCHAP") @@ -312,13 +312,13 @@ if hwtype == "atheros" or hwtype == "mac80211" then auth:depends({mode="sta", eap_type="TTLS", encryption="wpa"}) - identity = s:option(Value, "identity", translate("a_w_peapidentity")) + identity = s:option(Value, "identity", translate("Identity")) identity:depends({mode="sta", eap_type="PEAP", encryption="wpa2"}) identity:depends({mode="sta", eap_type="PEAP", encryption="wpa"}) identity:depends({mode="sta", eap_type="TTLS", encryption="wpa2"}) identity:depends({mode="sta", eap_type="TTLS", encryption="wpa"}) - password = s:option(Value, "password", translate("a_w_peappassword")) + password = s:option(Value, "password", translate("Password")) password:depends({mode="sta", eap_type="PEAP", encryption="wpa2"}) password:depends({mode="sta", eap_type="PEAP", encryption="wpa"}) password:depends({mode="sta", eap_type="TTLS", encryption="wpa2"}) @@ -327,11 +327,11 @@ end if hwtype == "atheros" or hwtype == "broadcom" then - iso = s:option(Flag, "isolate", translate("a_w_apisolation"), translate("a_w_apisolation1")) + iso = s:option(Flag, "isolate", translate("AP-Isolation"), translate("Prevents Client to Client communication")) iso.rmempty = true iso:depends("mode", "ap") - hide = s:option(Flag, "hidden", translate("a_w_hideessid")) + hide = s:option(Flag, "hidden", translate("Hide <abbr title=\"Extended Service Set Identifier\">ESSID</abbr>")) hide.rmempty = true hide:depends("mode", "ap") end |