[PATCH STABLE] histedit: make comment part of the file describing rules as translatable
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Thu Aug 2 23:00:47 CDT 2012
At Thu, 2 Aug 2012 08:05:26 -0500,
Augie Fackler wrote:
>
>
> On Jul 29, 2012, at 1:54 PM, FUJIWARA Katsunori wrote:
>
> > # HG changeset patch
> > # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> > # Date 1343586427 -32400
> > # Branch stable
> > # Node ID 60dee8c326d01efada33398ff1958b66fa8d5482
> > # Parent 3ccb49ed1cc13cf71cd780e998f200ed974ec271
> > histedit: make comment part of the file describing rules as translatable
> > -editcomment = """
> > -
> > -# Edit history between %s and %s
> > +editcomment = _("""# Edit history between %s and %s
> > #
> > # Commands:
> > # p, pick = use commit
> > @@ -173,7 +171,7 @@
> > # d, drop = remove commit from history
> > # m, mess = edit message without changing commit content
>
>
> Is there a way to note for translators that the LHS of the
> "commands" section must remain untranslated?
Oops, I had to put "# i18n:" comment for them like:
# i18n: "pick", "edit", "fold", "drop" and "mess" are keyword
editcomment = _("""# Edit history between %s and %s
#
# Commands:
# p, pick = use commit
# e, edit = use commit, but stop for amending
# f, fold = use commit, but fold into previous commit (combines N and N-1)
# d, drop = remove commit from history
# m, mess = edit message without changing commit content
#
""")
I'll post the patch to do so, soon.
Thank you for your comments !
----------------------------------------------------------------------
[FUJIWARA Katsunori] foozy at lares.dti.ne.jp
More information about the Mercurial-devel
mailing list