Doc #64331 [Opn->Csd]: [FR] Inconsistency in french version of "setlocale"

From: Date: Tue, 05 Mar 2013 08:57:58 +0000
Subject: Doc #64331 [Opn->Csd]: [FR] Inconsistency in french version of "setlocale"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9620@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64331&edit=1 ID: 64331 Updated by: yannick@php.net Reported by: julien at palard dot fr -Summary: Inconsistency in french version of "setlocale" +Summary: [FR] Inconsistency in french version of "setlocale" -Status: Open +Status: Closed Type: Documentation Problem Package: Translation problem PHP Version: Irrelevant -Assigned To: +Assigned To: yannick Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2013-03-05 08:56:33] 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-01 13:26:16] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64331&edit=1

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