(PHP 4 >= 4.2.0, PHP 5)
ngettext() returns correct plural form of message identified by msgid1 and msgid2 for count n. Some languages have more than one form for plural messages dependent on the count.
Esempio 1. ngettext() example
<?phpsetlocale(LC_ALL, 'cs_CZ');printf(ngettext("%d window", "%d windows", 1), 1); // 1 oknoprintf(ngettext("%d window", "%d windows", 2), 2); // 2 oknaprintf(ngettext("%d window", "%d windows", 5), 5); // 5 oken?>
Hosting by: hurra.comGenerated: 2007-01-26 17:56:46