+function interface.get_type_i18n(self)
+ local x = self:type()
+ if x == "wifi" then
+ return i18n.translate("a_s_if_wifidev", "Wireless Adapter")
+ elseif x == "bridge" then
+ return i18n.translate("a_s_if_bridge", "Bridge")
+ elseif x == "switch" then
+ return i18n.translate("a_s_if_ethswitch", "Ethernet Switch")
+ else
+ return i18n.translate("a_s_if_ethdev", "Ethernet Adapter")
+ end
+end
+