#44060 [Opn->Csd]: Small translation mistake
| From: | yannick@php.net | Date: | Sat, 05 Apr 2008 23:30:46 +0000 |
| Subject: | #44060 [Opn->Csd]: Small translation mistake | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-673@lists.php.net to get a copy of this message | ||
ID: 44060
Updated by: yannick@php.net
Reported By: avetis dot k at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Translation problem
Operating System: Irrelvant
PHP Version: Irrelevant
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:
------------------------------------------------------------------------
[2008-02-06 08:54:16] avetis dot k at gmail dot com
Description:
------------
While reading this page :
http://fr3.php.net/manual/fr/function.preg-split.php
I saw a part of the documentation which was not translated and could
put the reader in confusion : please check the example code.
It's a little confusing. Please translate also the examples in
documentation.
Thanks a lot.
Reproduce code:
---------------
<?php
$str = 'langage hypertexte, programmation';
$chars = preg_split('/ /', $str, -1, PREG_SPLIT_OFFSET_CAPTURE);
print_r($chars);
?>
Expected result:
----------------
Array
(
[0] => Array
(
[0] => langage
[1] => 0
)
[1] => Array
(
[0] => hypertexte,
[1] => 8
)
[2] => Array
(
[0] => programmation
[1] => 20
)
)
Actual result:
--------------
Array
(
[0] => Array
(
[0] => hypertext
[1] => 0
)
[1] => Array
(
[0] => language
[1] => 10
)
[2] => Array
(
[0] => programming
[1] => 19
)
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44060&edit=1