[PATCH stable] hgweb, i18n: do not translate search mode description

Wagner Bruna wagner.bruna+mercurial at gmail.com
Wed Nov 13 12:57:36 CST 2013


# HG changeset patch
# User Wagner Bruna <wbruna at softwareexpress.com.br>
# Date 1384368406 7200
#      Qua Nov 13 16:46:46 2013 -0200
# Branch stable
# Node ID 7cf38a0df38fa22c98d866f7fa4378cea0e4f158
# Parent  ba6486076429e5c20d910b8a5d4f8acf1e9dc1b1
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.

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -151,9 +151,9 @@ def _search(web, req, tmpl):
             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):


More information about the Mercurial-devel mailing list