php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70966 [FR] It seems that example#1 is wrong
Submitted: 2015-11-24 18:26 UTC Modified: 2016-07-27 01:57 UTC
From: daniel dot duclos2 at gmail dot com Assigned: pierrick (profile)
Status: Closed Package: Translation problem
PHP Version: 5.5.30 OS: Windows 10
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: daniel dot duclos2 at gmail dot com
New email:
PHP Version: OS:

 

 [2015-11-24 18:26 UTC] daniel dot duclos2 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.substr-replace
---

Il semble que l'exemple#1 soit faux en ce qui concerne les deux derniers exemples : le paramètre "lenght" est utilisé comme s'il signifiait "end" avec la même syntaxe que "start"

It seems that example#1 is wrong (at least in French version) for the 2 last examples : parameter 'lenght" is used as it meant "end" with the same syntax as "start"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-16 00:01 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2015-12-16 00:01 UTC] cmb@php.net
It seems to me that the example is correct, and the behavior of
substr_replace() with regard to the `length` parameter is properly
explained in the English documentation:

| If it is negative, it represents the number of characters from
| the end of string at which to stop replacing.

Maybe the French translation of this sentence is misleading?
 [2015-12-27 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2015-12-29 20:03 UTC] daniel dot duclos2 at gmail dot com
Sorry : I could not reopen the issue ; my password is not working

I confirm that it is a translation issue.

The translator endavored to find a good translation to this complex sentence, but the result is not understandable, at my mind. I suggest to come back to a translation close to the English version, which could be : "il représentera le nombre de caractères à partir de la fin de la chaîne où arrêter le remplacement"
 [2015-12-29 21:16 UTC] cmb@php.net
-Summary: It seems that example#1 is wrong +Summary: [FR] It seems that example#1 is wrong -Status: No Feedback +Status: Re-Opened -Package: Documentation problem +Package: Translation problem
 [2015-12-29 21:16 UTC] cmb@php.net
Okay. Reopening as translation problem.
 [2016-01-15 11:50 UTC] cmb@php.net
-Assigned To: cmb +Assigned To:
 [2016-01-15 11:50 UTC] cmb@php.net
Oops – forgotten to unassign myself.
 [2016-07-27 01:57 UTC] pierrick@php.net
Automatic comment from SVN on behalf of pierrick
Revision: http://svn.php.net/viewvc/?view=revision&revision=339735
Log: Fixed bug #70966
 [2016-07-27 01:57 UTC] pierrick@php.net
-Status: Re-Opened +Status: Closed -Assigned To: +Assigned To: pierrick
 [2016-07-27 01:57 UTC] pierrick@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:48 UTC] nikic@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=8a0c9ddcd3e8c0b7471aeddd4490d445c54dbe16
Log: Fixed bug #70966
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Dec 04 01:04:24 2021 UTC