From 93dfb961749085a416c18a34bbb225581a9e28c0 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 8 Jul 2017 16:47:07 +0200 Subject: [PATCH] Added Translation of title for read/unread books --- cps/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/web.py b/cps/web.py index 935f6df3..8b588650 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1633,10 +1633,10 @@ def render_read_books(page, are_read, as_xml=False): return response else: if are_read: - name = u'Read Books' + ' (' + str(len(readBookIds)) + ')' + name = _(u'Read Books') + ' (' + str(len(readBookIds)) + ')' else: 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, title=_(name, name=name))