hgweb, i18n: do not translate search mode description stable
authorWagner Bruna <wbruna@softwareexpress.com.br>
Wed, 13 Nov 2013 16:46:46 -0200
branchstable
changeset 20004 06e118c097ff
parent 20003 dcd3c47e464b
child 20005 22154ec6fb8b
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.
mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Sun Nov 10 16:48:24 2013 +0900
+++ b/mercurial/hgweb/webcommands.py	Wed Nov 13 16:46:46 2013 -0200
@@ -151,9 +151,9 @@
             yield web.repo[r]
 
     searchfuncs = {
-        MODE_REVISION: (revsearch, _('exact revision search')),
-        MODE_KEYWORD: (keywordsearch, _('literal keyword search')),
-        MODE_REVSET: (revsetsearch, _('revset expression search')),
+        MODE_REVISION: (revsearch, 'exact revision search'),
+        MODE_KEYWORD: (keywordsearch, 'literal keyword search'),
+        MODE_REVSET: (revsetsearch, 'revset expression search'),
     }
 
     def getsearchmode(query):