php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70107 [TR] wrong translate
Submitted: 2015-07-22 07:01 UTC Modified: 2021-08-11 11:13 UTC
From: sametcilli at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Translation problem
PHP Version: 5.6.11 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sametcilli at gmail dot com
New email:
PHP Version: OS:

 

 [2015-07-22 07:01 UTC] sametcilli at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.array-replace
---
original code 

<?php
$base = array("orange", "banana", "apple", "raspberry");
$replacements = array(0 => "pineapple", 4 => "cherry");
$replacements2 = array(0 => "grape");

$basket = array_replace($base, $replacements, $replacements2);
print_r($basket);
?>

output 
Array
(
    [0] => grape
    [1] => banana
    [2] => apple
    [3] => raspberry
    [4] => cherry
)

turkish code


<?php
$esas = array("portakal", "muz", "elma", "armut");
$ikame = array(0 => "karpuz", 4 => "kavun");
$ikame2 = array(0 => "dondurma");

$sepet = array_replace($esas, $ikame, $ikame2);
print_r($sepet);
?>


translated output into turkish

Array
(
    [0] => ahududu
    [1] => muz
    [2] => elma
    [3] => armut
    [4] => dondurma
)

must be

Array
(
    [0] => dondurma
    [1] => muz
    [2] => elma
    [3] => armut
    [4] => kavun
)



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-22 10:53 UTC] cmb@php.net
-Summary: wrong translate +Summary: [TR] wrong translate -Package: PHP Language Specification +Package: Translation problem
 [2021-08-11 11:13 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-08-11 11:13 UTC] cmb@php.net
Apparently, the order has been fixed in the meantime.  Note that
it is not that important to actually translate exactly; just that
the examples makes sense, and produces the given output[1].

[1] <https://3v4l.org/YKdQh>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC