Re: problem with plural-forms - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: problem with plural-forms
Date
Msg-id 200905261734.32878.peter_e@gmx.net
Whole thread Raw
In response to Re: problem with plural-forms  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tuesday 26 May 2009 16:47:44 Tom Lane wrote:
> The method breaks the instant you have any additional
> values to print.  For example, this ain't gonna work:
>
>        printf (ngettext ("One file removed, containing %lu bytes",
>                          "%d files removed, containing %lu bytes", n),
>                n, total_bytes);

Don't do that then.  This only shows that you cannot implement everything this 
way.  It does not show why the things that you can implement are wrong.

> I'm of the opinion that the test being performed by msgfmt -v is
> entirely reasonable, and we should not risk such problems for the sake
> of sometimes spelling out "one".

I have no objections to this.  I am only pointing out how we arrived at the 
current state.


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: PostgreSQL Developer meeting minutes up
Next
From: Magnus Hagander
Date:
Subject: Re: PostgreSQL Developer meeting minutes up