[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parenthesis necessary for Plural-Forms
From: |
Viktor Horvath |
Subject: |
parenthesis necessary for Plural-Forms |
Date: |
Tue, 12 Aug 2008 15:32:37 +0200 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.1.3) |
Dear gettext maintainers,
I'm using gettext 0.17 to internationalise a Perl project. I found
that plural forms would only work when I set the plurals= expression
into parentheses. Specifically,
"Plural-Forms: nplurals=3; plural=n==0 ? 0 : (n==1 ? 1 : 2);n"
would not work as expected, but
"Plural-Forms: nplurals=3; plural=(n==0 ? 0 : (n==1 ? 1 : 2));n"
did the job.
In case you can verify this behaviour, maybe one could update the
manual to reflect it? At the moment, it seems to suggest that the
first line should work. If you want, I can try to provide a patch for
the manual within some days.
Best wishes,
Viktor.
pgpDS4bNbBaWd.pgp
Description: PGP Digital Signature
- parenthesis necessary for Plural-Forms,
Viktor Horvath <=