[virt-manager PATCH 13/16] i18n: fix string puzzle in waiting time string
Pino Toscano
ptoscano at redhat.com
Tue Jul 14 07:41:57 UTC 2020
Use two different strings in case there is a timeout and there is none.
Also add a "the" article to make it slightly better.
Signed-off-by: Pino Toscano <ptoscano at redhat.com>
---
virtinst/virtinstall.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/virtinst/virtinstall.py b/virtinst/virtinstall.py
index 229251f7..fe36a47f 100644
--- a/virtinst/virtinstall.py
+++ b/virtinst/virtinstall.py
@@ -637,12 +637,10 @@ class WaitHandler:
self._start_time = time.time()
def get_time_string(self):
- timestr = _(" %d minutes") % self._wait_mins
if self._wait_forever:
- timestr = ""
- ret = _("Waiting%(time_string)s for installation to complete.") % {
- "time_string": timestr}
- return ret
+ return _("Waiting for the installation to complete.")
+ return (_("Waiting %(minutes)d minutes for the installation to complete.") %
+ {"minutes": self._wait_mins})
def wait(self):
"""
--
2.26.2
More information about the virt-tools-list
mailing list