[virt-manager PATCH 3/3] i18n: translate UI string

Pino Toscano ptoscano at redhat.com
Wed Jul 15 12:48:58 UTC 2020


A visible UI string must be translatable.

Signed-off-by: Pino Toscano <ptoscano at redhat.com>
---
 virtManager/details/snapshots.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/virtManager/details/snapshots.py b/virtManager/details/snapshots.py
index 35435d1d..59a2bf01 100644
--- a/virtManager/details/snapshots.py
+++ b/virtManager/details/snapshots.py
@@ -520,7 +520,8 @@ class vmmSnapshotPage(vmmGObjectUI):
 
         title = ""
         if name:
-            title = "<b>Snapshot '%s':</b>" % xmlutil.xml_escape(name)
+            title = (_("<b>Snapshot '%(name)s':</b>") %
+                     {"name": xmlutil.xml_escape(name)})
 
         uiutil.set_grid_row_visible(
             self.widget("snapshot-is-current"), is_current)
-- 
2.26.2




More information about the virt-tools-list mailing list