Fix clicking on news category to respect the current language

This commit is contained in:
Charles Haley 2011-06-19 19:20:48 +01:00
parent 8f6f6381a5
commit c450f28524

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]))