Patchwork [3,of,7,STABLE] i18n: make hint message of exception translatable

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Oct. 31, 2014, 5:46 p.m.
Message ID <692bde7f486ddce18264.1414777603@feefifofum>
Download mbox | patch
Permalink /patch/6497/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - Oct. 31, 2014, 5:46 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1414777388 -32400
#      Sat Nov 01 02:43:08 2014 +0900
# Branch stable
# Node ID 692bde7f486ddce18264c10fd4c7857b6acb5fb3
# Parent  cf56f7a60b4595c2b8cbe970d26c10659075fbd6
i18n: make hint message of exception translatable

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -953,7 +953,7 @@ 
             if self._repo.ui.config("censor", "policy", "abort") == "ignore":
                 return ""
             raise util.Abort(_("censored node: %s") % short(self._filenode),
-                             hint="set censor.policy to ignore errors")
+                             hint=_("set censor.policy to ignore errors"))
 
     def size(self):
         return self._filelog.size(self._filerev)