|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-25 00:02 UTC] yannick@php.net
[2020-12-30 12:50 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 16:00:01 2025 UTC |
Description: ------------ There's some mistakes with the French translation of sprintf(). Problem in example 3 : - There is 2 unwanted \ (line 2) Problem in example 4 : - Same as told for example 3. - Line 3, a quote mark isn't escape and an other is missing at the end. See attached code for more details. Reproduce code: --------------- Actual code for example 3 : <?php $format = 'Le %2\$s a %1\$d singes'; printf($format, $num, $location); ?> Actual code for example 4 : <?php $format = 'Le %2\$s a %1\$d singes. C'est un beau %2$s, avec %1$d singes.; printf($format, $num, $location); ?> Expected result: ---------------- Expected example 3 : <?php $format = 'Le %2$s a %1$d singes'; printf($format, $num, $location); ?> Expected example 4 : <?php $format = 'Le %2$s a %1$d singes. C\'est un beau %2$s, avec %1$d singes.'; printf($format, $num, $location); ?>