diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-01 17:30:15 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-01 17:30:15 +0000 |
commit | 9b888c18e372a28f612e5bad06aed6398527d394 (patch) | |
tree | 1c4414cafdb0e2a18c6f46ba9b10887f1e4d2dda /libs/core/luasrc/model | |
parent | 58ba2de8e108b8223d55cfb85fa41dadeb049627 (diff) |
libs: fix some more translation errors
Diffstat (limited to 'libs/core/luasrc/model')
-rw-r--r-- | libs/core/luasrc/model/network/wireless.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libs/core/luasrc/model/network/wireless.lua b/libs/core/luasrc/model/network/wireless.lua index 1dfc70e88e..37819bd123 100644 --- a/libs/core/luasrc/model/network/wireless.lua +++ b/libs/core/luasrc/model/network/wireless.lua @@ -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)") } |