This commit is contained in:
Eray Özkural
2005-11-17 21:58:48 +00:00
parent 07b5ad0ea2
commit 0fc3e1bdb7
+2 -2
View File
@@ -106,7 +106,7 @@ class CLI(UI):
import re import re
yesexpr = re.compile(locale.nl_langinfo(locale.YESEXPR)) yesexpr = re.compile(locale.nl_langinfo(locale.YESEXPR))
prompt = msg + colorize(_('(yes/no)'), 'red') prompt = msg + colorize(_(' (yes/no)'), 'red')
s = raw_input(prompt.encode('utf-8')) s = raw_input(prompt.encode('utf-8'))
if yesexpr.search(s): if yesexpr.search(s):
return True return True
@@ -118,7 +118,7 @@ class CLI(UI):
(ka['filename'], ka['percent'], ka['rate'], ka['symbol']) (ka['filename'], ka['percent'], ka['rate'], ka['symbol'])
self.output(out) self.output(out)
if ka['percent'] == 100: if ka['percent'] == 100:
self.output(colorize(' [complete]\n', 'gray')) self.output(colorize(_(' [complete]\n'), 'gray'))
def status(self, msg = None): def status(self, msg = None):
if msg: if msg: