[virt-manager PATCH 20/21] i18n: improve label for filesystem

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

 



Use a single string with a placeholder for the path to avoid a string
puzzle.

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

diff --git a/virtManager/details/details.py b/virtManager/details/details.py
index 126018c7..c13f6805 100644
--- a/virtManager/details/details.py
+++ b/virtManager/details/details.py
@@ -240,7 +240,7 @@ def _label_for_device(dev):
     if devtype == "video":
         return _("Video %s") % vmmAddHardware.video_pretty_model(dev.model)
     if devtype == "filesystem":
-        return _("Filesystem") + (" %s" % dev.target[:8])
+        return _("Filesystem %(path)s") % {"path": dev.target[:8]}
     if devtype == "controller":
         return _("Controller %(controller)s %(index)d") % {
             "controller": vmmAddHardware.controller_pretty_desc(dev),
-- 
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