i18n: translate labels for NICs

Translate the labels for a NIC, both when a MAC address is available and
when it is not.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
Pino Toscano
2020-07-13 15:37:00 -04:00
committed by Cole Robinson
parent 42463cde9c
commit 864fbfbbcf
+2 -2
View File
@@ -188,9 +188,9 @@ def _label_for_device(dev):
if devtype == "interface":
if dev.macaddr:
return "NIC %s" % dev.macaddr[-9:]
return _("NIC %(mac)s") % {"mac": dev.macaddr[-9:]}
else:
return "NIC"
return _("NIC")
if devtype == "input":
if dev.type == "tablet":