[virt-manager PATCH 13/21] i18n: translate whole title in migration dialog

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


Translate the whole string of a title in the migration dialog, including
the markup, so there is no string puzzle.

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

diff --git a/virtManager/migrate.py b/virtManager/migrate.py
index 897ce197..19067dd0 100644
--- a/virtManager/migrate.py
+++ b/virtManager/migrate.py
@@ -149,8 +149,9 @@ class vmmMigrateDialog(vmmGObjectUI):
             self.widget("migrate-temporary-label").get_tooltip_text())
 
     def _reset_state(self):
-        title_str = ("<span size='large'>%s '%s'</span>" %
-                     (_("Migrate"), xmlutil.xml_escape(self.vm.get_name())))
+        title_str = _("<span size='large'>Migrate '%(vm)s'</span>") % {
+            "vm": xmlutil.xml_escape(self.vm.get_name()),
+        }
         self.widget("header-label").set_markup(title_str)
 
         self.widget("migrate-advanced-expander").set_expanded(False)
-- 
2.26.2




More information about the virt-tools-list mailing list