diff options
author | Pino Toscano <ptoscano@redhat.com> | 2020-07-14 09:41:58 +0200 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-07-14 11:24:14 -0400 |
commit | 6f30ab2437b9f6bae424b5ce67603a23de33ecda (patch) | |
tree | d72f9c081b1a0639b5d863763e3c6b2a7cbf86e3 /virtinst/virtinstall.py | |
parent | cd15c72dfb4dcf8def3763f3d6df3003ce55db02 (diff) | |
download | virt-manager-6f30ab2437b9f6bae424b5ce67603a23de33ecda.tar.gz |
i18n: use plural forms where needed
Use plural forms for strings that depend on a runtime value, like a
count. This way they will get the proper string for the actual value.
Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
Diffstat (limited to 'virtinst/virtinstall.py')
-rw-r--r-- | virtinst/virtinstall.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/virtinst/virtinstall.py b/virtinst/virtinstall.py index fe36a47f..b9e85f2b 100644 --- a/virtinst/virtinstall.py +++ b/virtinst/virtinstall.py @@ -639,8 +639,9 @@ class WaitHandler: def get_time_string(self): if self._wait_forever: return _("Waiting for the installation to complete.") - return (_("Waiting %(minutes)d minutes for the installation to complete.") % - {"minutes": self._wait_mins}) + return ngettext("Waiting %(minutes)d minute for the installation to complete.", + "Waiting %(minutes)d minutes for the installation to complete.", + self._wait_mins) % {"minutes": self._wait_mins} def wait(self): """ |