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

login
register
mail settings
Submitter Wagner Bruna
Date Nov. 13, 2013, 6:57 p.m.
Message ID <7cf38a0df38fa22c98d8.1384369056@mwagner.paulista.local>
Download mbox | patch
Permalink /patch/2936/
State Accepted
Commit 06e118c097ff108ad62e7d9c5cfeb62bc6f69e0c
Headers show

Comments

Wagner Bruna - Nov. 13, 2013, 6:57 p.m.
# HG changeset patch
# User Wagner Bruna <wbruna@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.
Matt Mackall - Nov. 13, 2013, 7:43 p.m.
On Wed, 2013-11-13 at 16:57 -0200, Wagner Bruna wrote:
> # HG changeset patch
> # User Wagner Bruna <wbruna@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

Excellent, queued for stable.

Patch

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