Doc #72467 [Opn->Csd]: [FR] translation for PHP_ROUND_HALF_{EVEN,ODD} are wrong
| From: | pierrick@php.net | Date: | Wed, 27 Jul 2016 02:20:09 +0000 |
| Subject: | Doc #72467 [Opn->Csd]: [FR] translation for PHP_ROUND_HALF_{EVEN,ODD} are wrong | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13760@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72467&edit=1
ID: 72467
Updated by: pierrick@php.net
Reported by: julien at palard dot fr
Summary: [FR] translation for PHP_ROUND_HALF_{EVEN,ODD} are
wrong
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Translation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: pierrick
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2016-07-27 02:19:41] 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-06-22 07:52:39] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72467&edit=1