From: Jo-Philipp Wich Date: Sun, 8 Nov 2009 02:35:03 +0000 (+0000) Subject: libs/core: i18n fixes for wds mode X-Git-Tag: 0.10.0~980 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ee85b3b76b38abc65a744e30ef4b505e5a9f9456;p=oweals%2Fluci.git libs/core: i18n fixes for wds mode --- 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)") }