mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 16:56:15 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -581,7 +581,7 @@ def _log_prefix_rule_match_info(rule, record, matched):
|
|||
# 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…
Reference in a new issue