[virt-manager PATCH 15/16] i18n: use single string for error/warning

Pino Toscano ptoscano at redhat.com
Tue Jul 14 07:41:59 UTC 2020


Avoids few string puzzles.

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

diff --git a/virtManager/createvm.py b/virtManager/createvm.py
index d7322e82..90903a36 100644
--- a/virtManager/createvm.py
+++ b/virtManager/createvm.py
@@ -306,18 +306,18 @@ class vmmCreateVM(vmmGObjectUI):
             self.widget("install-box").hide()
             self.widget("arch-expander").hide()
 
-        self.widget("startup-error").set_text("%s: %s" % (_("Error"), error))
+        self.widget("startup-error").set_text(_("Error: %s") % error)
         return False
 
     def _show_startup_warning(self, error):
         self.widget("startup-error-box").show()
         self.widget("startup-error").set_markup(
-            "<span size='small'>%s: %s</span>" % (_("Warning"), error))
+            _("<span size='small'>Warning: %s</span>") % error)
 
     def _show_arch_warning(self, error):
         self.widget("arch-warning-box").show()
         self.widget("arch-warning").set_markup(
-            "<span size='small'>%s: %s</span>" % (_("Warning"), error))
+            _("<span size='small'>Warning: %s</span>") % error)
 
 
     def _init_state(self):
-- 
2.26.2




More information about the virt-tools-list mailing list