Doc #70966 [ReO]: [FR] It seems that example#1 is wrong

From: Date: Fri, 15 Jan 2016 11:50:20 +0000
Subject: Doc #70966 [ReO]: [FR] It seems that example#1 is wrong
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13109@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70966&edit=1 ID: 70966 Updated by: cmb@php.net Reported by: daniel dot duclos2 at gmail dot com Summary: [FR] It seems that example#1 is wrong Status: Re-Opened Type: Documentation Problem Package: Translation problem Operating System: Windows 10 PHP Version: 5.5.30 -Assigned To: cmb +Assigned To: Block user comment: N Private report: N New Comment: Oops – forgotten to unassign myself. Previous Comments: ------------------------------------------------------------------------ [2015-12-29 21:16:03] cmb@php.net Okay. Reopening as translation problem. ------------------------------------------------------------------------ [2015-12-29 20:03:13] 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-27 04:22:24] 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-16 00:01:14] 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-11-24 18:26:24] 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" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70966&edit=1

« previous php.doc.bugs (#13109) next »