libs/core: i18n fixes for wds mode
This commit is contained in:
parent
c07a7b5a02
commit
ee85b3b76b
1 changed files with 2 additions and 1 deletions
|
@ -69,6 +69,7 @@ local function _mode(m)
|
||||||
elseif m == "adhoc" then m = "Ad-Hoc"
|
elseif m == "adhoc" then m = "Ad-Hoc"
|
||||||
elseif m == "mesh" then m = "Mesh"
|
elseif m == "mesh" then m = "Mesh"
|
||||||
elseif m == "monitor" then m = "Monitor"
|
elseif m == "monitor" then m = "Monitor"
|
||||||
|
elseif m == "wds" then m = "WDS"
|
||||||
end
|
end
|
||||||
|
|
||||||
return m or "Client"
|
return m or "Client"
|
||||||
|
@ -90,7 +91,7 @@ function get_i18n(self, iface)
|
||||||
if iface.dev and iface.dev.wifi then
|
if iface.dev and iface.dev.wifi then
|
||||||
return "%s: %s %q" %{
|
return "%s: %s %q" %{
|
||||||
i18n.translate("Wireless Network"),
|
i18n.translate("Wireless Network"),
|
||||||
i18n.translate(iface.dev.wifi.mode or "Client"),
|
i18n.translate(_mode(iface.dev.wifi.mode)),
|
||||||
iface.dev.wifi.ssid or iface.dev.wifi.bssid
|
iface.dev.wifi.ssid or iface.dev.wifi.bssid
|
||||||
or i18n.translate("(hidden)")
|
or i18n.translate("(hidden)")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue