mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-13 06:34:26 +00:00
Added Translation of title for read/unread books
This commit is contained in:
parent
f446e29276
commit
93dfb96174
@ -1633,10 +1633,10 @@ def render_read_books(page, are_read, as_xml=False):
|
|||||||
return response
|
return response
|
||||||
else:
|
else:
|
||||||
if are_read:
|
if are_read:
|
||||||
name = u'Read Books' + ' (' + str(len(readBookIds)) + ')'
|
name = _(u'Read Books') + ' (' + str(len(readBookIds)) + ')'
|
||||||
else:
|
else:
|
||||||
total_books = db.session.query(func.count(db.Books.id)).scalar()
|
total_books = db.session.query(func.count(db.Books.id)).scalar()
|
||||||
name = u'Unread Books' + ' (' + str(total_books - len(readBookIds)) + ')'
|
name = _(u'Unread Books') + ' (' + str(total_books - len(readBookIds)) + ')'
|
||||||
return render_title_template('index.html', random=random, entries=entries, pagination=pagination,
|
return render_title_template('index.html', random=random, entries=entries, pagination=pagination,
|
||||||
title=_(name, name=name))
|
title=_(name, name=name))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user