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:
Kovid Goyal 2011-06-19 12:33:14 -06:00
commit ac93c19c1f

View File

@ -1654,9 +1654,9 @@ class TagsModel(QAbstractItemModel): # {{{
if node.tag.state: if node.tag.state:
if node.category_key == "news": if node.category_key == "news":
if node_searches[node.tag.state] == 'true': if node_searches[node.tag.state] == 'true':
ans.append('tags:=news') ans.append('tags:"=' + _('News') + '"')
else: else:
ans.append('( not tags:=news )') ans.append('( not tags:"=' + _('News') + '")')
else: else:
ans.append('%s:%s'%(node.category_key, node_searches[node.tag.state])) ans.append('%s:%s'%(node.category_key, node_searches[node.tag.state]))