mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
EPUB/MOBI Catalogs: Fix prefix rules not working when calibre UI language is something other than English
This commit is contained in:
parent
469b633e7e
commit
b53f33db0e
@ -581,7 +581,7 @@ class CatalogBuilder(object):
|
||||
# Compare the record to each rule looking for a match
|
||||
for rule in self.prefix_rules:
|
||||
# Literal comparison for Tags field
|
||||
if rule['field'].lower() == 'tags':
|
||||
if rule['field'].lower() == 'tags' or rule['field'] == _('Tags'):
|
||||
if rule['pattern'].lower() in map(unicode.lower, record['tags']):
|
||||
if self.DEBUG and self.opts.verbose:
|
||||
self.opts.log.info(" %s '%s' by %s (%s: Tags includes '%s')" %
|
||||
|
Loading…
x
Reference in New Issue
Block a user