Doc #70107 [NEW]: wrong translate
From: sametcilli at gmail dot com
Operating system:
PHP version: 5.6.11
Package: PHP Language Specification
Bug Type: Documentation Problem
Bug description:wrong translate
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 bug report at https://bugs.php.net/bug.php?id=70107&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70107&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70107&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70107&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70107&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70107&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70107&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70107&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70107&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70107&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70107&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70107&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70107&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70107&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70107&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70107&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70107&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70107&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70107&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70107&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70107&r=mysqlcfg
Thread (2 messages)
- sametcilli at gmail dot com