Mercurial > hg
changeset 13139:f4dd6aa16805
progress: explain format strings to translators
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Wed, 15 Dec 2010 09:35:32 +0100 |
parents | ce05c8130296 |
children | 217ae7d5c8ee |
files | hgext/progress.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/progress.py Wed Dec 15 10:50:19 2010 +0100 +++ b/hgext/progress.py Wed Dec 15 09:35:32 2010 +0100 @@ -57,15 +57,18 @@ def fmtremaining(seconds): if seconds < 60: + # i18n: format XX seconds as "XXs" return _("%02ds") % (seconds) minutes = seconds // 60 if minutes < 60: seconds -= minutes * 60 + # i18n: format X minutes and YY seconds as "XmYYs" return _("%dm%02ds") % (minutes, seconds) # we're going to ignore seconds in this case minutes += 1 hours = minutes // 60 minutes -= hours * 60 + # i18n: format X hours and YY minutes as "XhYYm" return _("%dh%02dm") % (hours, minutes) class progbar(object):