#44060 [NEW]: Small translation mistake

From: Date: Wed, 06 Feb 2008 08:54:16 +0000
Subject: #44060 [NEW]: Small translation mistake
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-504@lists.php.net to get a copy of this message
From: avetis dot k at gmail dot com Operating system: Irrelvant PHP version: Irrelevant PHP Bug Type: Translation problem Bug description: Small translation mistake 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 bug report at http://bugs.php.net/?id=44060&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44060&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44060&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44060&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44060&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44060&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44060&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44060&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44060&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44060&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44060&r=support Expected behavior: http://bugs.php.net/fix.php?id=44060&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44060&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44060&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44060&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44060&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44060&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44060&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44060&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44060&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44060&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44060&r=mysqlcfg

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