php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73829 [TR] wrong example result
Submitted: 2016-12-28 17:57 UTC Modified: 2016-12-28 22:56 UTC
From: mehmetmuratocak at gmail dot com Assigned:
Status: Open Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-12-28 17:57 UTC] mehmetmuratocak at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.array-replace
---


Result of the first example in turkish translation is wrong. Also the translation of the array values in the example is inaccurate.

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

(
    [0] => ahududu // not even in array values, it should be "dondurma"
    [1] => muz
    [2] => elma
    [3] => armut
    [4] => dondurma // it should be "kavun"
)

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

$esas = array("portakal", "muz", "elma", "armut"); // raspberry is ahududu in turkish, not armut
$ikame = array(0 => "karpuz", 4 => "kavun"); // should be "ananas" and "kiraz" in turkish
$ikame2 = array(0 => "dondurma"); // it should be "üzüm",


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-28 22:56 UTC] cmb@php.net
-Summary: wrong example result +Summary: [TR] wrong example result
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Oct 22 12:01:28 2019 UTC