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
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mehmetmuratocak at gmail dot com Assigned:
Status: Open Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
4 + 40 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 06:01:35 2024 UTC