php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37972 Error in french translation for the array_multisort example
Submitted: 2006-06-30 07:50 UTC Modified: 2006-06-30 17:10 UTC
From: perrick at noparking dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2006-06-30 07:50 UTC] perrick at noparking dot net
Description:
------------
The french translation for the documentation of "array_multisort" contains an error leading to a lot of confusion.


Reproduce code:
---------------
Here's the english part :

// Sort the data with volume descending, edition ascending
// Add $data as the last parameter, to sort by the common key
array_multisort($volume, SORT_DESC, $edition, SORT_ASC, $data);

Expected result:
----------------
Here's the french translation :

// Tri les donn?es par volume d?croissant, edition croissant
// Ajoute $data en tant que premier param?tre, pour trier par la cl? commune
array_multisort($volume, SORT_DESC, $edition, SORT_ASC, $data);

Actual result:
--------------
And finally what I was expecting :

// Tri les donn?es par volume d?croissant, edition croissant
// Ajoute $data en tant que dernier param?tre, pour trier par la cl? commune
array_multisort($volume, SORT_DESC, $edition, SORT_ASC, $data);

The difference : "dernier" and "premier". Their meaning are very different (ie. opposite ;-)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-30 07:53 UTC] perrick at noparking dot net
I kind of inverted the "Expected result" and the "Actual result" in my report. Sorry about this.
 [2006-06-30 17:10 UTC] jsgoupil@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:50 UTC] nikic@php.net
Automatic comment on behalf of jsgoupil
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=9ecb0fb42fe731d8281e028d0c695df56278808c
Log: fix #37972 + typo
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 21:01:31 2025 UTC