[PATCH 1 of 5 STABLE] i18n: add "i18n" comment to error messages of template functions
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Tue Oct 30 14:08:10 CDT 2012
# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1351623567 -32400
# Branch stable
# Node ID 424bfdcd31211f05dc4c5d47328b0c34d6290d8c
# Parent 7b0b1da49f15c2aa20a8e7abe8fa1be26191e4fb
i18n: add "i18n" comment to error messages of template functions
diff -r 7b0b1da49f15 -r 424bfdcd3121 mercurial/templater.py
--- a/mercurial/templater.py Tue Oct 23 21:25:22 2012 -0700
+++ b/mercurial/templater.py Wed Oct 31 03:59:27 2012 +0900
@@ -203,6 +203,7 @@
def join(context, mapping, args):
if not (1 <= len(args) <= 2):
+ # i18n: "join" is a keyword
raise error.ParseError(_("join expects one or two arguments"))
joinset = args[0][0](context, mapping, args[0][1])
@@ -223,6 +224,7 @@
def sub(context, mapping, args):
if len(args) != 3:
+ # i18n: "sub" is a keyword
raise error.ParseError(_("sub expects three arguments"))
pat = stringify(args[0][0](context, mapping, args[0][1]))
@@ -232,6 +234,7 @@
def if_(context, mapping, args):
if not (2 <= len(args) <= 3):
+ # i18n: "if" is a keyword
raise error.ParseError(_("if expects two or three arguments"))
test = stringify(args[0][0](context, mapping, args[0][1]))
@@ -244,6 +247,7 @@
def ifeq(context, mapping, args):
if not (3 <= len(args) <= 4):
+ # i18n: "ifeq" is a keyword
raise error.ParseError(_("ifeq expects three or four arguments"))
test = stringify(args[0][0](context, mapping, args[0][1]))
More information about the Mercurial-devel
mailing list