#47186 [NEW]: French Translation Example Code Incorrect

From: Date: Wed, 21 Jan 2009 21:52:47 +0000
Subject: #47186 [NEW]: French Translation Example Code Incorrect
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1740@lists.php.net to get a copy of this message
From:             danbrown@php.net
Operating system: N/A
PHP version:      Irrelevant
PHP Bug Type:     Translation problem
Bug description:  French Translation Example Code Incorrect

Description:
------------
In the first example on
http://php.net/manual/fr/language.oop5.visibility.php,
and only in the
French translation, there is a typo that echoes $this->private; twice, as
opposed to first echoing $this->public;.

Reproduce code:
---------------
Go to http://php.net/manual/fr/language.oop5.visibility.php
and read the
first example.

Expected result:
----------------
class MyClass
{
    public $public = 'Public';
    protected $protected = 'Protected';
    private $private = 'Private';

    function printHello()
    {
        echo $this->public; // <--- This is how it *should* be.
        echo $this->protected;
        echo $this->private;
    }
}

Actual result:
--------------
class MyClass
{
    public $public = 'Public';
    protected $protected = 'Protected';
    private $private = 'Private';

    function printHello()
    {
        echo $this->private; // <--- This is how it *is*.
        echo $this->protected;
        echo $this->private;
    }
}

-- 
Edit bug report at http://bugs.php.net/?id=47186&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        http://bugs.php.net/fix.php?id=47186&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        http://bugs.php.net/fix.php?id=47186&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        http://bugs.php.net/fix.php?id=47186&r=trysnapshot60
Fixed in CVS:                        http://bugs.php.net/fix.php?id=47186&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47186&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=47186&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=47186&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=47186&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=47186&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=47186&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=47186&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=47186&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=47186&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=47186&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47186&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47186&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=47186&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=47186&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=47186&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=47186&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=47186&r=mysqlcfg



Thread (2 messages)

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