php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60702 [ES] Traslation error in key() docs
Submitted: 2012-01-10 17:57 UTC Modified: 2012-01-28 12:22 UTC
From: mameyugo at gmail dot com Assigned: seros (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-01-10 17:57 UTC] 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 />

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-27 15:42 UTC] nikic@php.net
-Summary: traslation error +Summary: [ES] Traslation error in key() docs -Package: Documentation problem +Package: Translation problem
 [2012-01-28 12:19 UTC] seros@php.net
Automatic comment from SVN on behalf of seros
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=322901
Log: Fixed Doc Bug #60702
 [2012-01-28 12:22 UTC] seros@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: seros
 [2012-01-28 12:22 UTC] seros@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 11:01:31 2024 UTC