libs: fix some more translation errors
This commit is contained in:
parent
58ba2de8e1
commit
9b888c18e3
2 changed files with 13 additions and 2 deletions
|
@ -37,7 +37,7 @@ $Id$
|
|||
-%>
|
||||
}, '<%- if not self.rmempty and not self.optional then -%>
|
||||
<%-:cbi_select-%>
|
||||
<%- end -%>', '<%:-- custom --%>');
|
||||
<%- end -%>', '<%: -- custom -- %>');
|
||||
</script>
|
||||
<% end -%>
|
||||
<% if i <= #vals then %><br />
|
||||
|
|
|
@ -63,10 +63,21 @@ function init(self, cursor)
|
|||
end)
|
||||
end
|
||||
|
||||
local function _mode(m)
|
||||
if m == "ap" then m = "AP"
|
||||
elseif m == "sta" then m = "Client"
|
||||
elseif m == "adhoc" then m = "Ad-Hoc"
|
||||
elseif m == "mesh" then m = "Mesh"
|
||||
elseif m == "monitor" then m = "Monitor"
|
||||
end
|
||||
|
||||
return m or "Client"
|
||||
end
|
||||
|
||||
function shortname(self, iface)
|
||||
if iface.dev and iface.dev.wifi then
|
||||
return "%s %q" %{
|
||||
i18n.translate(iface.dev.wifi.mode or "Client"),
|
||||
i18n.translate(_mode(iface.dev.wifi.mode)),
|
||||
iface.dev.wifi.ssid or iface.dev.wifi.bssid
|
||||
or i18n.translate("(hidden)")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue