Query: ngettext
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NGETTEXT(3) 1 NGETTEXT(3) ngettext - Plural version of gettextSYNOPSISstring ngettext (string $msgid1, string $msgid2, int $n)DESCRIPTIONThe plural version of gettext(3). Some languages have more than one form for plural messages dependent on the count.PARAMETERSo $msgid1 - o $msgid2 - o $n -RETURN VALUESReturns correct plural form of message identified by $msgid1 and $msgid2 for count $n.EXAMPLESExample #1 ngettext(3) example <?php setlocale(LC_ALL, 'cs_CZ'); printf(ngettext("%d window", "%d windows", 1), 1); // 1 okno printf(ngettext("%d window", "%d windows", 2), 2); // 2 okna printf(ngettext("%d window", "%d windows", 5), 5); // 5 oken ?> PHP Documentation Group NGETTEXT(3)
Related Man Pages |
---|
dngettext(3) - linux |
ngettext(3) - redhat |
dngettext(3) - debian |
dngettext(3) - centos |
ngettext(3) - x11r4 |
Similar Topics in the Unix Linux Community |
---|
Mutt 1.5 on Aix 5.3 |
Orcallator in solaris servers |
Symbol resolution failed for gawk on AIX |
0509-036 tar error |
AIX and Value too large to be stored in data type. |