From 864fbfbbcfbe41f93fe01bfbd5ecb412101d256d Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 13 Jul 2020 10:25:43 +0200 Subject: [PATCH] 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 Signed-off-by: Pino Toscano --- virtManager/details/details.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtManager/details/details.py b/virtManager/details/details.py index 6e597694..791a5ae1 100644 --- a/virtManager/details/details.py +++ b/virtManager/details/details.py @@ -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":