From 974dda861bdd34f0da2c52b8785f13d6045afff3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Nov 2013 08:34:38 +0530 Subject: [PATCH] Content server: Show the name of the virtual library at the top when browsing books in a virtual library. Fixes #1251278 [Name of Virtual Lib. in headline](https://bugs.launchpad.net/calibre/+bug/1251278) --- src/calibre/library/server/browse.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/library/server/browse.py b/src/calibre/library/server/browse.py index 1a8aa24765..7bc92a6113 100644 --- a/src/calibre/library/server/browse.py +++ b/src/calibre/library/server/browse.py @@ -675,6 +675,7 @@ class BrowseServer(object): which = unhexlify(cid).decode('utf-8') vls = self.db.prefs.get('virtual_libraries', {}) ids = self.search_cache(vls[which]) + category_name = _('virtual library: ') + which if not ids: msg = _('The virtual library %s has no books.') % prepare_string_for_xml(which) if self.search_restriction: