Fix #3425 (Messages often incorrectly display unicode text)

This commit is contained in:
Kovid Goyal 2009-09-12 10:00:53 -06:00
parent 08e24b835c
commit 5d02ce2db1

View File

@ -150,6 +150,12 @@ def convert_bulk_ebook(parent, db, book_ids, out_format=None):
if x[0] == 'debug_pipeline': if x[0] == 'debug_pipeline':
lrecs.remove(x) lrecs.remove(x)
try:
dtitle = unicode(mi.title)
except:
dtitle = repr(mi.title)
desc = _('Convert book %d of %d (%s)') % (i + 1, total, dtitle)
desc = _('Convert book %d of %d (%s)') % (i + 1, total, repr(mi.title)) desc = _('Convert book %d of %d (%s)') % (i + 1, total, repr(mi.title))
args = [in_file, out_file.name, lrecs] args = [in_file, out_file.name, lrecs]