Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.4

Bug #1769 Typo in example
Submitted: 2004-07-02 06:44 UTC
From: mhavilah at hotmail dot com Assigned: quipo
Status: Closed Package: Translation2
PHP Version: 4.3.6 OS: WinXP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 21 - 6 = ?

 
 [2004-07-02 06:44 UTC] mhavilah at hotmail dot com
Description: ------------ Third fallback language [german] is wrongly setup in example code, /Translation2/docs/examples/Translation2_example.php. Error is on line 61. Reproduce code: --------------- /Translation2/docs/examples/Translation2_example.php Line55.....: // set an 'English Decorator', i.e. add English as a fallback language \$tr = & \$tr->getDecorator('Lang'); \$tr->setOption('fallbackLang', 'en'); // add a 'German Decorator', i.e. add German as a third fallback language \$tr = & \$tr->getDecorator('Lang'); // July2004-MiH Suggestion: \$tr->setOption('fallbackLang', 'de'); // Original line follows... // \$tr->setOption('fallbackLang', 'en'); EOT; // ==================================================== Expected result: ---------------- German strings are third fallback after italian, then english. Actual result: -------------- Cut+Paste typo -- english is fallback two times.

Comments

 [2004-07-02 07:17 UTC] quipo
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. thanks for noticing!