php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80288 [TR] Translation of example is wrong
Submitted: 2020-10-27 17:11 UTC Modified: 2021-10-04 15:51 UTC
From: iletisim at sahvemat dot com Assigned: cmb (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: iletisim at sahvemat dot com
New email:
PHP Version: OS:

 

 [2020-10-27 17:11 UTC] iletisim at sahvemat dot com
Description:
------------
---
From manual page: https://php.net/function.sys-getloadavg
---
Original example:
Example #1 A sys_getloadavg() example

<?php
$load = sys_getloadavg();
if ($load[0] > 0.80) {
    header('HTTP/1.1 503 Too busy, try again later');
    die('Server too busy. Please try again later.');
}
?>

On Turkish form;
<?php
$load = sys_getloadavg();
if ($load[0] > 80) {
    header('HTTP/1.1 503 Too busy, try again later');
    die('Sunucu çok meşgul. Lütfen daha sonra tekrar deneyin.');
}
?>
As you can see on above example, Load value is served as decimal value. But on Turkish translation, it is an integer value.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-27 17:24 UTC] cmb@php.net
-Summary: Translation of example is wrong on Turkish Language +Summary: [TR] Translation of example is wrong
 [2021-10-04 15:51 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-10-04 15:51 UTC] cmb@php.net
The example has been fixed in the meantime.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC