Bug #60702 [Opn->Csd]: [ES] Traslation error in key() docs
| From: | seros@php.net | Date: | Sat, 28 Jan 2012 12:22:03 +0000 |
| Subject: | Bug #60702 [Opn->Csd]: [ES] Traslation error in key() docs | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7884@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60702&edit=1
ID: 60702
Updated by: seros@php.net
Reported by: mameyugo at gmail dot com
Summary: [ES] Traslation error in key() docs
-Status: Open
+Status: Closed
Type: Bug
Package: Translation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: seros
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:
------------------------------------------------------------------------
[2012-01-28 12:19:44] seros@php.net
Automatic comment from SVN on behalf of seros
Revision: http://svn.php.net/viewvc/?view=revision&revision=322901
Log: Fixed Doc Bug #60702
------------------------------------------------------------------------
[2012-01-10 17:57:02] mameyugo at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=60702&edit=1