PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Internationalization » Translation2 » Bug #2503

[PATCH] Gettext container is broken

Details

Submitted2004-10-11 17:46 UTC
Fromieure at php dot net
Assignedquipo
StatusClosed
PackageTranslation2
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[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
+?>