comparison mercurial/hgweb/webcommands.py @ 20004:06e118c097ff stable

hgweb, i18n: do not translate search mode description The search mode description can't be translated by itself, since it's displayed as part of a template phrase (the "Assuming ..." / "Use ... instead" bits). Just drop the translation markers for now, since the templates themselves currently do not support translations.
author Wagner Bruna <wbruna@softwareexpress.com.br>
date Wed, 13 Nov 2013 16:46:46 -0200
parents d51c4d85ec23
children 4830763f825c 77acd8ce01ce
comparison
equal deleted inserted replaced
20003:dcd3c47e464b 20004:06e118c097ff
149 def revsetsearch(revs): 149 def revsetsearch(revs):
150 for r in revs: 150 for r in revs:
151 yield web.repo[r] 151 yield web.repo[r]
152 152
153 searchfuncs = { 153 searchfuncs = {
154 MODE_REVISION: (revsearch, _('exact revision search')), 154 MODE_REVISION: (revsearch, 'exact revision search'),
155 MODE_KEYWORD: (keywordsearch, _('literal keyword search')), 155 MODE_KEYWORD: (keywordsearch, 'literal keyword search'),
156 MODE_REVSET: (revsetsearch, _('revset expression search')), 156 MODE_REVSET: (revsetsearch, 'revset expression search'),
157 } 157 }
158 158
159 def getsearchmode(query): 159 def getsearchmode(query):
160 try: 160 try:
161 ctx = web.repo[query] 161 ctx = web.repo[query]