Re: Improving the ngettext() patch - Mailing list pgsql-hackers

From pg@thetdh.com
Subject Re: Improving the ngettext() patch
Date
Msg-id W41287001165161244207266@webmail57
Whole thread Raw
In response to Improving the ngettext() patch  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
(Grrr, declension, not declination.)<br /><br />> "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0
:n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"<br /><br />Thanks.  The above
(ignoringbackslash-EOL) is the form recommended for Russian (inter alia(s)) in the Texinfo manual for gettext ("info
gettext"). FWIW this might be an alternative:<br /><br />"Plural-Forms: nplurals=3; plural=((n - 1)  % 10) >= (5-1)
||(((n - 1) % 100) <= (14-1) && ((n - 1) % 100) >= (11 - 1)) ? 2 : ((n - 1) % 10) == (1 - 1) ? 0 :
1;\n"<br/><br />David Hudson<br /><br /> 

pgsql-hackers by date:

Previous
From: "Kolb, Harald (NSN - DE/Munich)"
Date:
Subject: Re: postmaster recovery and automatic restart suppression
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL Developer meeting minutes up