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: 2015-07-22 10:53 UTC
From: sametcilli at gmail dot com Assigned:
Status: Open Package: Translation problem
PHP Version: 5.6.11 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Feb 17 15:01:25 2019 UTC