[virt-manager PATCH 07/21] i18n: improve labels for RNG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Pino Toscano <ptoscano@xxxxxxxxxx>
---
 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




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux