gcc/cp/pt.c: use ngettext() when needed

Jakub Jelinek jakub@redhat.com
Fri Feb 26 10:43:00 GMT 2010


On Fri, Feb 26, 2010 at 11:04:19AM +0100, Paolo Bonzini wrote:
> 
> >I viewed the new generated gcc.pot by this patch, the changed parts are
> >the following:
> >
> >#: cp/pt.c:4667
> >#, gcc-internal-format
> >msgid "redeclared with %d template parameter"
> >msgid_plural "redeclared with %d template parameters"
> >msgstr[0] ""
> >msgstr[1] ""
> >
> >#: cp/pt.c:4671
> >#, gcc-internal-format
> >msgid "previous declaration %q+D used %d template parameter"
> >msgid_plural "previous declaration %q+D used %d template parameters"
> >msgstr[0] ""
> >msgstr[1] ""
> >
> >Just be curious, how the msgstr will be set at the above example Paolo
> >indicated.
> 
> Czech translators have to add a "msgstr[2]" line and add this at the
> top of the .po file
> 
> "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;"

I believe it is still
Plural-Forms: nplurals=3; plural=n%100/10==1 ? 2 : n%10==1 ? 0 : (n+9)%10>3 ? 2 : 1;
for Czech, anyway, it doesn't matter here much and it is up to the
translators.

	Jakub



More information about the Gcc-patches mailing list