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:
parent
42463cde9c
commit
864fbfbbcf
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue