Doc #77526 [NEW]: incorrect definition of %g, %G format in sprintf function due to translation
From: mh+php dot net at dsi972 dot fr
Operating system: any
PHP version: Irrelevant
Package: PHP Language Specification
Bug Type: Documentation Problem
Bug description:incorrect definition of %g, %G format in sprintf function due to translation
Description:
------------
---
From manual page: https://php.net/fr/function.sprintf
---
In the French version of the documentation of the sprintf function,
there is a factual error which stems from an incorrect translation.
That page gives an incorrect definition of the %g, %G format
specifiers.
It says %g and %G are a "raccourci", meaning: shortcut, for %e and %f
(resp. %E and %F) format. This is (obviously) wrong: %g is NOT a
shortcut for %e or %f -- all of them are of the same length, one '%'
plus one more character!
Expected result:
----------------
---
(On manual page: https://php.net/fr/function.sprintf)
---
A correct translation and specification of the %g (resp. %G) format
would be:
"Le plus court entre %e et %f."
(resp.: "... %E et %F" for %G),
meaning that it will choose either %e or %f format depending on which
one yields the shorter representation / output.
--
Edit bug report at https://bugs.php.net/bug.php?id=77526&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77526&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77526&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77526&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77526&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77526&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77526&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77526&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77526&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77526&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77526&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77526&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77526&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77526&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77526&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77526&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77526&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77526&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77526&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77526&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77526&r=mysqlcfg
Thread (2 messages)
- mh+php dot net at dsi972 dot fr