libs/core: i18n fixes for wds mode
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Nov 2009 02:35:03 +0000 (02:35 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Nov 2009 02:35:03 +0000 (02:35 +0000)
libs/core/luasrc/model/network/wireless.lua

index 37819bd1235b4eb4b67ea004fcb3291b9b9cf627..1123bec7b65ba4d8ecb1d778735421cef531847e 100644 (file)
@@ -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)")
                }