Bug->Doc #53637 [Opn->Asn]: Typo in ngettext() documentation example

From: Date: Tue, 04 Jan 2011 13:19:27 +0000
Subject: Bug->Doc #53637 [Opn->Asn]: Typo in ngettext() documentation example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5741@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53637&edit=1 ID: 53637 Updated by: aharvey@php.net Reported by: dusan dot halicky at gmail dot com Summary: Typo in ngettext() documentation example -Status: Open +Status: Assigned -Type: Bug +Type: Documentation Problem Package: Documentation problem Operating System: all PHP Version: 5.3.4 -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-01-01 23:52:11] dusan dot halicky at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.ngettext#Examples --- setlocale(LC_ALL, 'cs_CZ'); printf(ngettext("%d window", "%d windows", 1), 1); // 1 okino printf(ngettext("%d window", "%d windows", 2), 2); // 2 okna printf(ngettext("%d window", "%d windows", 5), 5); // 5 oken On first printf line, there is "okino", it should be "okno": 1 okno 2 okna 5 oken ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53637&edit=1

« previous php.doc.bugs (#5741) next »