Bug #60702 [NEW]: traslation error
| From: | mameyugo at gmail dot com | Date: | Tue, 10 Jan 2012 17:57:02 +0000 |
| Subject: | Bug #60702 [NEW]: traslation error | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-7765@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Bug
Bug description:traslation error
Description:
------------
---
From manual page:
http://www.php.net/function.key#refsect1-function.key-examples
---
<?php
$array = array(
'fruit1' => 'manzana',
'fruit2' => 'naranja',
'fruit3' => 'uva',
'fruit4' => 'manzana',
'fruit5' => 'manzana');
// Este ciclo muestra todas las claves del array asociativo
// donde el valor equivale a "manzana"
while ($fruit_name = current($array)) {
if ($fruit_name == 'apple') {
echo key($array).'<br />';
}
next($array);
}
?>
in Spanish traslation the condition $fruit_name == 'apple' is wrong. it
should be $fruit_name == 'manzana'
Test script:
---------------
<?php
$array = array(
'fruit1' => 'manzana',
'fruit2' => 'naranja',
'fruit3' => 'uva',
'fruit4' => 'manzana',
'fruit5' => 'manzana');
// Este ciclo muestra todas las claves del array asociativo
// donde el valor equivale a "manzana"
while ($fruit_name = current($array)) {
if ($fruit_name == 'manzana') {
echo key($array).'<br />';
}
next($array);
}
?>
Actual result:
--------------
fruit1<br />
fruit4<br />
fruit5<br />
--
Edit bug report at https://bugs.php.net/bug.php?id=60702&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60702&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60702&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60702&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60702&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60702&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60702&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60702&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60702&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60702&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60702&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60702&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60702&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60702&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60702&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60702&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60702&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60702&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60702&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60702&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60702&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60702&r=mysqlcfg