Doc #64331 [NEW]: Inconsistency in french version of "setlocale"
| From: | julien at palard dot fr | Date: | Fri, 01 Mar 2013 13:26:17 +0000 |
| Subject: | Doc #64331 [NEW]: Inconsistency in french version of "setlocale" | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9602@lists.php.net to get a copy of this message | ||
From: julien at palard dot fr
Operating system:
PHP version: Irrelevant
Package: Translation problem
Bug Type: Documentation Problem
Bug description:Inconsistency in french version of "setlocale"
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>"0"</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 bug report at https://bugs.php.net/bug.php?id=64331&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64331&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64331&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64331&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64331&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64331&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64331&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64331&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64331&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64331&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64331&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64331&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64331&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64331&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64331&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64331&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64331&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64331&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64331&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64331&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64331&r=mysqlcfg