[PATCH] summary: Clarify output for the commit summary

Mads Kiilerich mads at kiilerich.com
Mon Oct 19 07:34:51 CDT 2009


On 10/19/2009 02:14 PM, David Soria Parra wrote:
> diff --git a/mercurial/commands.py b/mercurial/commands.py
> --- a/mercurial/commands.py
> +++ b/mercurial/commands.py
> @@ -2907,7 +2907,7 @@
>           if st[i]:
>               t.append('%d %s' % (len(st[i]), l))
>
> -    t = ', '.join(t)
> +    t = ', '.join(t) + _(' files')
>
>       if len(parents)>  1:
>           t += _(' (merge)')

Such fragments are hard to translate, especially to languages with 
different word orderings.

Mercurial has no occurences of "+ _(", and until last night no 
occurences of "+= _(".

Try to use "_('%s files', ..." instead.

/Mads


More information about the Mercurial-devel mailing list