summaryrefslogtreecommitdiffhomepage
path: root/libs/core
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-31 15:54:11 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-31 15:54:11 +0000
commit7c765875884d6866c53b63757731b079bace2e9b (patch)
treedb436df0eaff7de048bca26a7e419aedeb4a08a4 /libs/core
parentdc7138e424dfd454951ed5ed4eeddbf842457e87 (diff)
all: change most translate statements to new format, some need manual cleanup
Diffstat (limited to 'libs/core')
-rw-r--r--libs/core/luasrc/model/network.lua8
-rw-r--r--libs/core/luasrc/model/network/wireless.lua4
-rw-r--r--libs/core/luasrc/model/wireless.lua4
3 files changed, 8 insertions, 8 deletions
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