php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64331 [FR] Inconsistency in french version of "setlocale"
Submitted: 2013-03-01 13:26 UTC Modified: 2013-03-05 08:57 UTC
From: julien at palard dot fr Assigned: yannick (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2013-03-01 13:26 UTC] julien at palard dot fr
Description:
------------
---
From manual page: http://www.php.net/function.setlocale#refsect1-function.setlocale-parameters
---

The english documentation for the parameter "locale" of "setlocale" is :

 If locale is "0", the locale setting is not affected, only the current setting is returned.

But in french, it's :

 Si locale vaut NULL ou vaut "0", la configuration locale ne sera pas modifiée, et la configuration courante sera retournée.

So french documentation say the parameter local can be set to NULL to fetch curent configuration, this is wrong, only "0" will return current configuration, so the english version is right.

Test script:
---------------
wget -qO- http://www.php.net/manual/fr/function.setlocale.php | grep -q ' Si <em><code class="parameter">locale</code></em> vaut <strong><code>NULL</code></strong> ou vaut <em>&quot;0&quot;</em>' && echo Failed || echo Success


Expected result:
----------------
Si locale vaut "0", la configuration locale ne sera pas modifiée, et la configuration courante sera retournée. 

Actual result:
--------------
Si locale vaut NULL ou vaut "0", la configuration locale ne sera pas modifiée, et la configuration courante sera retournée. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-05 08:56 UTC] yannick@php.net
Automatic comment from SVN on behalf of yannick
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=329653
Log: Fix bug #64331
 [2013-03-05 08:57 UTC] yannick@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.


 [2013-03-05 08:57 UTC] yannick@php.net
-Summary: Inconsistency in french version of "setlocale" +Summary: [FR] Inconsistency in french version of "setlocale" -Status: Open +Status: Closed -Assigned To: +Assigned To: yannick
 [2020-12-30 12:49 UTC] nikic@php.net
Automatic comment on behalf of yannick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=d886c5eab06ea8b814c6e05f2a01bf171dc981c4
Log: Fix bug #64331
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 05:01:31 2024 UTC