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 12:46 UTC Modified: 2004-10-11 14:08 UTC
From: ieure at php dot net Assigned: quipo
Status: Closed Package: Translation2
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-10-11 12: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 14: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.