mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-07-31 08:38:19 -05:00
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:
committed by
Cole Robinson
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":
|
||||
|
||||
Reference in New Issue
Block a user