Re: [PATCH v2 12/14] i18n: show-branch: mark error messages for translation
- From
Jean-Noël AVILA <jn.avila@free.fr>
- Date
- Sep 12, 2016, 17:19 UTC
- Message-ID
- <17140652.xHVhzLXte8@cayenne>
- In-Reply-To
- <xmqqa8fd3vb5.fsf@gitster.mtv.corp.google.com>
On lundi 12 septembre 2016 10:02:54 CEST Junio C Hamano wrote:
Show 12 quoted lines
> Jean-Noël Avila <jn.avila@free.fr> writes:
> > Le 12/09/2016 à 13:30, Vasco Almeida a écrit :
> >> if (MAX_REVS < reflog)
> >>
> >> - die("Only %d entries can be shown at one time.",
> >> + die("only %d entries can be shown at one time.",
> >>
> >> MAX_REVS);
> >
> > Wouldn't you i18n this one too, with plural form?
>
> I would think this one is OK in practice for the same reason as 7/14I would think the contrary for the same reason as 14/14
We don't know the actual value of MAX_REVS at the time we translate, and plural forms can be quite different depending on its value. See for instance polish:
https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html
Of course, too bad, we only use one of the forms but I don't see any alternative.
Thanks,
JN