* u18a
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user