note 87649 added to function.ngettext
| From: | peter at ints dot net | Date: | Sun, 14 Dec 2008 19:26:06 +0000 |
| Subject: | note 87649 added to function.ngettext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148162@lists.php.net to get a copy of this message | ||
Example for russian lang:
file.po:
...
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 &&
n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
...
msgid "File"
msgid_plural "Files"
msgstr[0] "Файл"
msgstr[1] "Файла"
msgstr[2] "Файлов"
...
file.php
...
echo ngettext("File", "Files", $number);
...
----
Server IP: 213.186.192.247
Probable Submitter: 212.66.45.1
----
Manual Page -- http://www.php.net/manual/en/function.ngettext.php
Edit -- https://master.php.net/note/edit/87649
Del: integrated -- https://master.php.net/note/delete/87649/integrated
Del: useless -- https://master.php.net/note/delete/87649/useless
Del: bad code -- https://master.php.net/note/delete/87649/bad+code
Del: spam -- https://master.php.net/note/delete/87649/spam
Del: non-english -- https://master.php.net/note/delete/87649/non-english
Del: in docs -- https://master.php.net/note/delete/87649/in+docs
Del: other reasons-- https://master.php.net/note/delete/87649
Reject -- https://master.php.net/note/reject/87649
Search -- https://master.php.net/manage/user-notes.php