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 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 !
Your email address:
MUST BE VALID
Solve the problem:
47 - 45 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 26 03:03:35 2021 UTC