From 8ef6cb9e0e1b0b3880a259e2094c8feaf35be59c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Nov 2016 10:41:44 +0530 Subject: [PATCH] ... --- src/calibre/srv/opds.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/srv/opds.py b/src/calibre/srv/opds.py index 356467447b..2af13c1dc8 100644 --- a/src/calibre/srv/opds.py +++ b/src/calibre/srv/opds.py @@ -147,9 +147,10 @@ def CATALOG_ENTRY(item, item_kind, request_context, updated, catalog_name, iid += ':'+item_kind href = request_context.url_for('/opds/category', category=hexlify(catalog_name), which=hexlify(iid)) link = NAVLINK(href=href) - count = (_('%d books') if item.count > 1 else _('%d book'))%item.count if ignore_count: count = '' + else: + count = ngettext('one book', '{} books', item.count).format(item.count) if item.use_sort_as_name: name = item.sort else: