|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44452 French translation - problems with sprintf()
Submitted: 2008-03-17 09:18 UTC Modified: 2008-03-25 00:02 UTC
From: rodolphe dot breard at etu dot univ-nantes dot fr Assigned:
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
 [2008-03-17 09:18 UTC] rodolphe dot breard at etu dot univ-nantes dot fr
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 :

$format = 'Le %2\$s a %1\$d singes';
printf($format, $num, $location);

Actual code for example 4 :

$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 :

$format = 'Le %2$s a %1$d singes';
printf($format, $num, $location);

Expected example 4 :

$format = 'Le %2$s a %1$d singes.
           C\'est un beau %2$s, avec %1$d singes.';
printf($format, $num, $location);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-25 00:02 UTC]
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:50 UTC]
Automatic comment on behalf of yannick
Log: sync with EN &amp; fix bug #44452
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 18:01:30 2024 UTC