Doc #70107 [Opn->Csd]: [TR] wrong translate
Edit report at https://bugs.php.net/bug.php?id=70107&edit=1
ID: 70107
Updated by: cmb@php.net
Reported by: sametcilli at gmail dot com
Summary: [TR] wrong translate
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Translation problem
PHP Version: 5.6.11
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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>
Previous Comments:
------------------------------------------------------------------------
[2015-07-22 07:01:02] 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
)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70107&edit=1
Thread (2 messages)