mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix clicking on News in Tag Browser not working in non English locales. Fixes #799471 (News Tag inconsistancy (in german version))
This commit is contained in:
commit
ac93c19c1f
@ -1654,9 +1654,9 @@ class TagsModel(QAbstractItemModel): # {{{
|
||||
if node.tag.state:
|
||||
if node.category_key == "news":
|
||||
if node_searches[node.tag.state] == 'true':
|
||||
ans.append('tags:=news')
|
||||
ans.append('tags:"=' + _('News') + '"')
|
||||
else:
|
||||
ans.append('( not tags:=news )')
|
||||
ans.append('( not tags:"=' + _('News') + '")')
|
||||
else:
|
||||
ans.append('%s:%s'%(node.category_key, node_searches[node.tag.state]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user