php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69731 [FR] array_splice() reference : "il sera transtypé en 1"
Submitted: 2015-05-29 14:34 UTC Modified: 2016-07-27 01:33 UTC
From: chealer at gmail dot com Assigned: pierrick (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chealer at gmail dot com
New email:
PHP Version: OS:

 

 [2015-05-29 14:34 UTC] chealer at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.array-splice
---
    Note: Si replacement n'est pas un tableau, il sera transtypé en 1 (i.e. (array) $parameter). Cela peut conduire en un résultat non prévu lors de l'utilisation d'un objet ou NULL comme paramètre replacement. 

is supposed to translate:

    Note: If replacement is not an array, it will be typecast to one (i.e. (array) $parameter). This may result in unexpected behavior when using an object or NULL replacement. 


"il sera transtypé en un" would be less puzzling, but a literal translation is not valid. I would suggest:
Si replacement n'est pas un tableau, il en deviendra un par transtypage (i.e. (array) $parameter).


By the way, "$parameter" should read "$replacement" (this also affects the source version).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-29 15:57 UTC] cmb@php.net
-Summary: array_splice() French reference : "il sera transtypé en 1" +Summary: [FR] array_splice() reference : "il sera transtypé en 1"
 [2016-07-27 01:32 UTC] pierrick@php.net
Automatic comment from SVN on behalf of pierrick
Revision: http://svn.php.net/viewvc/?view=revision&revision=339733
Log: Fixed bug #69731
 [2016-07-27 01:33 UTC] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2020-12-30 12:48 UTC] nikic@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=ab4c9df3a739bddd2727c5d671f862226c2e5e5b
Log: Fixed bug #69731
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 21:01:29 2024 UTC