Doc #64861 [Opn]: [DE] Error in strripos() German translation

From: Date: Sun, 12 Apr 2015 20:44:45 +0000
Subject: Doc #64861 [Opn]: [DE] Error in strripos() German translation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12137@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64861&edit=1

 ID:                 64861
 Updated by:         cmb@php.net
 Reported by:        eproskawetz at t-online dot de
 Summary:            [DE] Error in strripos() German translation
 Status:             Open
 Type:               Documentation Problem
 Package:            Translation problem
 Operating System:   Windows
 PHP Version:        5.5.0RC1
 Block user comment: N
 Private report:     N

 New Comment:

Related to bug #66563.


Previous Comments:
------------------------------------------------------------------------
[2015-04-06 21:59:47] cmb@php.net

> The wording is super confusing here.

After having reconsidered this issue in the meantime, I have to
agree. It appears to me that the original needs improvement, too.
Actually, the search always works backwards[1] (what might be
regarded as an implementation detail, but searching forwards for
the last occurance wouldn't make sense). Describing it this way,
might simplify the explanation. See also bug #50317.

Anyhow, related to bug #68010.

[1] <http://lxr.php.net/xref/PHP_5_6/ext/standard/string.c#1981>

------------------------------------------------------------------------
[2015-04-06 21:44:53] c dot jantz at vations dot de

The wording is super confusing here. 

What about this alternative: 
Wenn angegeben beginnt die Suche bei angegebener Position von Beginn des Strings an gezählt. 
Sollte der Wert negativ sein startet die Suche selbige Anzahl von Zeichen vor Ende des Strings und
sucht rückwärts.

------------------------------------------------------------------------
[2015-03-02 19:35:21] cmbecker69 at gmx dot de

> This says, that the search stop at the position offset if the
> value is positiv and if the value is negativ it starts at
> strlen-offset.

Yes. And that is how the $offset parameter is supposed to work,
see the examples given for strrpos().

The German translation is correct, albeit somewhat clumsy.

------------------------------------------------------------------------
[2013-05-16 14:33:28] eproskawetz at t-online dot de

Description:
------------
---
From manual page: http://www.php.net/function.strripos#refsect1-function.strripos-parameters
---


Test script:
---------------
 offset

    Wenn angegeben, wird die Suche diese Anzahl an Buchstaben vom Anfang des Strings gezählt
stoppen. Wenn der Wert negativ ist, startet die Suche stattdessen diese Anzahl an Zeichen vom Ende
des Strings aus.

This says, that the search stop at the position offset if the value is positiv and if the value is
negativ it starts at strlen-offset. Correct would be:

Wenn angegeben, wird die Suche diese Anzahl an Buchstaben vom Ende des Strings gezählt stoppen.
Wenn der Wert negativ ist, endet die Suche stattdessen diese Anzahl an Zeichen vom Anfang des
Strings aus.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=64861&edit=1


Thread (6 messages)

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