[virt-manager PATCH 09/21] i18n: improve label for controller

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

 



Use a proper string with placeholders for the controller name and index,
to avoid string puzzles.

Signed-off-by: Pino Toscano <ptoscano@xxxxxxxxxx>
---
 virtManager/details/details.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/virtManager/details/details.py b/virtManager/details/details.py
index 224f36b1..c44642d9 100644
--- a/virtManager/details/details.py
+++ b/virtManager/details/details.py
@@ -240,8 +240,10 @@ def _label_for_device(dev):
     if devtype == "filesystem":
         return _("Filesystem") + (" %s" % dev.target[:8])
     if devtype == "controller":
-        return _("Controller") + (" %s %s" % (
-                vmmAddHardware.controller_pretty_desc(dev), dev.index))
+        return _("Controller %(controller)s %(index)d") % {
+            "controller": vmmAddHardware.controller_pretty_desc(dev),
+            "index": dev.index,
+        }
     if devtype == "rng":
         if dev.device:
             return _("RNG %(device)s") % {"device": dev.device}
-- 
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