i18n: improve labels for RNG

Use a separate string in case it has an associated device to avoid a
string puzzle.

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 15:37:00 -04:00
committed by Cole Robinson
parent aa369e7a8d
commit 9d81aae894
+2 -3
View File
@@ -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: