Re: Plurals in translations was Re: [STRAW POLL] Help on i18n translations?
From: Nicolás Lichtmaier <nick_at_reloco.com.ar>
 
Date: 2004-04-01 20:17:52 CEST 
Justin Erenkrantz wrote:
 > --On Thursday, April 1, 2004 12:21 PM -0300 Nicolás Lichtmaier 
 The changes are harmless anyway. Have you read my comment about #include 
 >> BTW.. how do we handle plurals? GNU gettext
 Normal gettext is:
 char *gettext(char *);
 There's a ngettext function, defined as:
 char *ngettext(char *msgid1, char *msgid2, int n);
 where msgid1 is the English singular form, msgid2 the English plural 
 sprintf(ngettext("%d file updated", "%d files updated", n), n);
 xgettext will properly parse and handle this. It has extended the .po 
 ---------------------------------------------------------------------
  | 
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.