[virt-manager PATCH 13/16] i18n: fix string puzzle in waiting time string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux