From ee85b3b76b38abc65a744e30ef4b505e5a9f9456 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 8 Nov 2009 02:35:03 +0000 Subject: [PATCH] libs/core: i18n fixes for wds mode --- libs/core/luasrc/model/network/wireless.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)") } -- 2.25.1