X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/1c21fe13bb453d0f11c8a40461b3bfe7dba5cef1..db545998ecbe01bfd3fd13a8b274da869958e0f5:/lib/python/Components/Network.py diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index 6fbd9994..d10163fb 100644 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -198,7 +198,15 @@ class Network: def getNumberOfAdapters(self): return len(self.ifaces) - + + def getFriendlyAdapterName(self, x): + # maybe this needs to be replaced by an external list. + friendlyNames = { + "eth0": _("Integrated Ethernet"), + "wlan0": _("Wireless") + } + return friendlyNames.get(x, x) # when we have no friendly name, use adapter name + def getAdapterName(self, iface): return iface