php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53637 Typo in ngettext() documentation example
Submitted: 2011-01-01 23:52 UTC Modified: 2011-01-04 14:29 UTC
From: dusan dot halicky at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.4 OS: all
Private report: No CVE-ID: None
 [2011-01-01 23:52 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-04 14:19 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Type: Bug +Type: Documentation Problem -Assigned To: +Assigned To: aharvey
 [2011-01-04 14:29 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=307080
Log: Fix doc bug #53637 (Typo in ngettext() documentation example).
 [2011-01-04 14:29 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2011-01-04 14:29 UTC] aharvey@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

I think it's fair to say our English is better than our Czech. :)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 09:00:02 2026 UTC