summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-11-08 02:35:03 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-11-08 02:35:03 +0000
commitee85b3b76b38abc65a744e30ef4b505e5a9f9456 (patch)
tree1a51348c4af063b132f40148317d86bf86bef3d3 /libs
parentc07a7b5a02d8d97f0647fbcbdc6882d87714b33b (diff)
libs/core: i18n fixes for wds mode
Diffstat (limited to 'libs')
-rw-r--r--libs/core/luasrc/model/network/wireless.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/core/luasrc/model/network/wireless.lua b/libs/core/luasrc/model/network/wireless.lua
index 37819bd12..1123bec7b 100644
--- a/libs/core/luasrc/model/network/wireless.lua
+++ b/libs/core/luasrc/model/network/wireless.lua
@@ -69,6 +69,7 @@ local function _mode(m)
elseif m == "adhoc" then m = "Ad-Hoc"
elseif m == "mesh" then m = "Mesh"
elseif m == "monitor" then m = "Monitor"
+ elseif m == "wds" then m = "WDS"
end
return m or "Client"
@@ -90,7 +91,7 @@ function get_i18n(self, iface)
if iface.dev and iface.dev.wifi then
return "%s: %s %q" %{
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
or i18n.translate("(hidden)")
}