[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Plurals in translations was Re: [STRAW POLL] Help on i18n translations?

From: Nicolás Lichtmaier <nick_at_reloco.com.ar>
Date: 2004-04-02 18:01:10 CEST

>>There are already many places where the code thecks if a number is !=1
>>and decides weather to use a plural form or not.
>>
>>
>In French, this would be incorrect as the condition is >= 1
>(i.e. 0 -> singular). There was a problem like that in another
>project (ROX) and the source (and English messages) had to be
>changed so that it could be translatable into French.
>
>

Gettext handles that. You define a rule which defines which of a set of
translations is used based on the number passed to ngettext.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 2 18:04:38 2004

This is an archived mail posted to the Subversion Dev mailing list.