From 7c765875884d6866c53b63757731b079bace2e9b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 31 Oct 2009 15:54:11 +0000 Subject: all: change most translate statements to new format, some need manual cleanup --- libs/core/luasrc/model/network.lua | 8 ++++---- libs/core/luasrc/model/network/wireless.lua | 4 ++-- libs/core/luasrc/model/wireless.lua | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'libs/core') diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua index e1e9f4558..8459463f1 100644 --- a/libs/core/luasrc/model/network.lua +++ b/libs/core/luasrc/model/network.lua @@ -396,13 +396,13 @@ end function interface.get_type_i18n(self) local x = self:type() if x == "wifi" then - return i18n.translate("a_s_if_wifidev", "Wireless Adapter") + return i18n.translate("Wireless Adapter") elseif x == "bridge" then - return i18n.translate("a_s_if_bridge", "Bridge") + return i18n.translate("Bridge") elseif x == "switch" then - return i18n.translate("a_s_if_ethswitch", "Ethernet Switch") + return i18n.translate("Ethernet Switch") else - return i18n.translate("a_s_if_ethdev", "Ethernet Adapter") + return i18n.translate("Ethernet Adapter") end end diff --git a/libs/core/luasrc/model/network/wireless.lua b/libs/core/luasrc/model/network/wireless.lua index 109367fd4..122532523 100644 --- a/libs/core/luasrc/model/network/wireless.lua +++ b/libs/core/luasrc/model/network/wireless.lua @@ -77,12 +77,12 @@ end function get_i18n(self, iface) if iface.dev and iface.dev.wifi then return "%s: %s %q" %{ - i18n.translate("a_s_if_wifinet", "Wireless Network"), + i18n.translate("Wireless Network"), i18n.translate("a_s_if_iwmode_" .. (iface.dev.wifi.mode or "ap"), iface.dev.wifi.mode or "AP"), iface.dev.wifi.ssid or iface.dev.wifi.bssid or "(hidden)" } else - return "%s: %q" %{ i18n.translate("a_s_if_wifinet", "Wireless Network"), iface:name() } + return "%s: %q" %{ i18n.translate("Wireless Network"), iface:name() } end end diff --git a/libs/core/luasrc/model/wireless.lua b/libs/core/luasrc/model/wireless.lua index ea6706076..2a463dbad 100644 --- a/libs/core/luasrc/model/wireless.lua +++ b/libs/core/luasrc/model/wireless.lua @@ -100,12 +100,12 @@ end function get_i18n(self, iface) if iface.wdev and iface.winfo then return "%s: %s %q (%s)" %{ - i18n.translate("a_s_if_wifinet", "Wireless Network"), + i18n.translate("Wireless Network"), i18n.translate("a_s_if_iwmode_" .. iface:active_mode(), iface.winfo.mode(iface.wdev)), iface:active_ssid() or "(hidden)", iface.wdev } else - return "%s: %q" %{ i18n.translate("a_s_if_wifinet", "Wireless Network"), iface:name() } + return "%s: %q" %{ i18n.translate("Wireless Network"), iface:name() } end end -- cgit v1.2.3