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

Bug #2503 [PATCH] Gettext container is broken
Submitted: 2004-10-11 17:46 UTC
From: ieure at php dot net Assigned: quipo
Status: Closed Package: Translation2
PHP Version: Irrelevant OS: Linux
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 : 18 + 4 = ?

 
 [2004-10-11 17:46 UTC] ieure at php dot net
Description: ------------ It appears that the container semantics changed at some point; initialization is done in an init() function instead of in the container's constructor. The gettext container was not updated to use these semantics. Patch is against CVS. Index: Container/gettext.php =================================================================== RCS file: /repository/pear/Translation2/Container/gettext.php,v retrieving revision 1.11 diff -u -r1.11 gettext.php --- Container/gettext.php 20 Jun 2004 13:56:49 -0000 1.11 +++ Container/gettext.php 11 Oct 2004 17:44:20 -0000 @@ -70,7 +70,7 @@ * @param array gettext parameters * @return object Returns an error object if something went wrong */ - function Translation2_Container_gettext($options) + function init($options) { $this->_setDefaultOptions(); $this->_parseOptions($options); @@ -294,4 +294,4 @@ // }}} } -?> \ No newline at end of file +?>

Comments

 [2004-10-11 19:08 UTC] quipo
I had it on my HD, but for some reason I forgot to commit it :-/ Fixed in CVS. Thanks for the report.