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

Pino Toscano ptoscano at redhat.com
Mon Jul 13 08:25:58 UTC 2020


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

Signed-off-by: Pino Toscano <ptoscano at redhat.com>
---
 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




More information about the virt-tools-list mailing list