##// END OF EJS Templates
templater: add i18n comments to error messages of newly added functions...
FUJIWARA Katsunori -
r21960:2896d450 stable
parent child Browse files
Show More
@@ -468,6 +468,7 b' def sub(context, mapping, args):'
468
468
469 def startswith(context, mapping, args):
469 def startswith(context, mapping, args):
470 if len(args) != 2:
470 if len(args) != 2:
471 # i18n: "startswith" is a keyword
471 raise error.ParseError(_("startswith expects two arguments"))
472 raise error.ParseError(_("startswith expects two arguments"))
472
473
473 patn = stringify(args[0][0](context, mapping, args[0][1]))
474 patn = stringify(args[0][0](context, mapping, args[0][1]))
@@ -480,6 +481,7 b' def startswith(context, mapping, args):'
480 def word(context, mapping, args):
481 def word(context, mapping, args):
481 """return nth word from a string"""
482 """return nth word from a string"""
482 if not (2 <= len(args) <= 3):
483 if not (2 <= len(args) <= 3):
484 # i18n: "word" is a keyword
483 raise error.ParseError(_("word expects two or three arguments, got %d")
485 raise error.ParseError(_("word expects two or three arguments, got %d")
484 % len(args))
486 % len(args))
485
487
General Comments 0
You need to be logged in to leave comments. Login now