[sylpheed:31392] Re: gettext can work with more complex plural forms ?
hiro-y at kcn.ne.jp
Mon Jun 4 11:24:45 JST 2007
On Tue, 29 May 2007 18:48:34 +0300
Cristian Secară <orice at secarica.ro> wrote:
> Somewhere in the ro.po file I have this:
> #: src/summaryview.c:2162
> #, c-format
> msgid "%d new, %d unread, %d total"
> msgstr "%d nou(i), %d necitit(e), %d în total"
> The actual Romanian translation is not very nice, each of the first
> two numbers should have distinct singular and plural forms:
> nou for 1, noi for > 1
> necitit for 1, necitite for > 2
> The gettext "Plural-Forms: nplurals= ..." provides support for more
> than one plural item in same sentence ?
Gettext seems to support plurals by ngettext(id1,id2,n) function. But
the implementation may become a bit complicated in this case.
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp>
More information about the Sylpheed