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 10:25:43 +02:00 committed by Cole Robinson
parent 42463cde9c
commit 864fbfbbcf
1 changed files with 2 additions and 2 deletions

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":