[virt-manager PATCH 07/21] i18n: improve labels for RNG
Pino Toscano
ptoscano at redhat.com
Mon Jul 13 08:25:45 UTC 2020
Use a separate string in case it has an associated device to avoid a
string puzzle.
Signed-off-by: Pino Toscano <ptoscano at redhat.com>
---
virtManager/details/details.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/virtManager/details/details.py b/virtManager/details/details.py
index 6911a0bd..dcc8a370 100644
--- a/virtManager/details/details.py
+++ b/virtManager/details/details.py
@@ -243,10 +243,9 @@ def _label_for_device(dev):
return _("Controller") + (" %s %s" % (
vmmAddHardware.controller_pretty_desc(dev), dev.index))
if devtype == "rng":
- label = _("RNG")
if dev.device:
- label += (" %s" % dev.device)
- return label
+ return _("RNG %(device)s") % {"device": dev.device}
+ return _("RNG")
if devtype == "tpm":
label = _("TPM")
if dev.device_path:
--
2.26.2
More information about the virt-tools-list
mailing list