php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72467 [FR] translation for PHP_ROUND_HALF_{EVEN,ODD} are wrong
Submitted: 2016-06-22 07:52 UTC Modified: 2016-07-27 02:20 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: julien at palard dot fr Assigned: pierrick (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: julien at palard dot fr
New email:
PHP Version: OS:

 

 [2016-06-22 07:52 UTC] julien at palard dot fr
Description:
------------
---
From manual page: http://www.php.net/function.round
---

Translation of:

    PHP_ROUND_HALF_EVEN	Round val to precision decimal places towards the next even value.
    PHP_ROUND_HALF_ODD	Round val to precision decimal places towards the next odd value.

is:

    PHP_ROUND_HALF_EVEN	Arrondit val à la précision precision de décimal après la prochaine valeur.
    PHP_ROUND_HALF_ODD	Arrondit val à la précision precision de décimal avant la prochaine valeur.

Which misses the "odd vs even" information. Here is my proposal:

    PHP_ROUND_HALF_EVEN	Arrondit val à *precision* décimales vers la prochaine valeur paire.
    PHP_ROUND_HALF_ODD	Arrondit val à *precision* décimales vers la prochaine valeur impaire.

While I'm at it:

    PHP_ROUND_HALF_UP	Arrondit val à une précision precision supérieure de décimal après zéro lorsqu'il est à mi-chemin. Par exemple, 1.5 deviendra 2 et -1.5 deviendra -2.
    PHP_ROUND_HALF_DOWN	Arrondit val à une précision precision inférieure de décimal avant zéro lorsqu'il est à mi-chemin. Par exemple, 1.5 deviendra 1 et -1.5 deviendra -1.

Are not that good, better be:

PHP_ROUND_HALF_UP	Arrondit val à *precision* décimales en s'éloignant de zéro lorsqu'elle est à mi-chemin. Par exemple, 1.5 deviendra 2 et -1.5 deviendra -2.
PHP_ROUND_HALF_DOWN	Arrondit val à *precision* décimales en s'approchant de zéro lorsqu'elle est à mi-chemin. Par exemple, 1.5 deviendra 1 et -1.5 deviendra -1.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-22 10:27 UTC] cmb@php.net
-Summary: French translation for PHP_ROUND_HALF_{EVEN,ODD} are wrong +Summary: [FR] translation for PHP_ROUND_HALF_{EVEN,ODD} are wrong -Package: Documentation problem +Package: Translation problem
 [2016-07-27 02:19 UTC] pierrick@php.net
Automatic comment from SVN on behalf of pierrick
Revision: http://svn.php.net/viewvc/?view=revision&revision=339736
Log: Fixed bug #72467
 [2016-07-27 02:20 UTC] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2016-07-27 02:20 UTC] pierrick@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-12-30 12:48 UTC] nikic@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=4b313c20220cde2549d9d2f6ebad22ccb3338894
Log: Fixed bug #72467
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 20:01:29 2024 UTC