cvs: pear /Translation2/Container gettext.php
| From: | Lorenzo Alberton | Date: | Tue, 31 May 2005 18:15:32 +0000 |
| Subject: | cvs: pear /Translation2/Container gettext.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32277@lists.php.net to get a copy of this message | ||
quipo Tue May 31 14:15:32 2005 EDT
Modified files:
/pear/Translation2/Container gettext.php
Log:
fixed bug #4476 (gettext container not working without gettext extension)
http://cvs.php.net/diff.php/pear/Translation2/Container/gettext.php?r1=1.24&r2=1.25&ty=u
Index: pear/Translation2/Container/gettext.php
diff -u pear/Translation2/Container/gettext.php:1.24 pear/Translation2/Container/gettext.php:1.25
--- pear/Translation2/Container/gettext.php:1.24 Wed Mar 30 12:39:57 2005
+++ pear/Translation2/Container/gettext.php Tue May 31 14:15:31 2005
@@ -18,7 +18,7 @@
* @author Michael Wallner <mike at php dot net>
* @copyright 2004-2005 Lorenzo Alberton, Michael Wallner
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: gettext.php,v 1.24 2005/03/30 17:39:57 mike Exp $
+ * @version CVS: $Id: gettext.php,v 1.25 2005/05/31 18:15:31 quipo Exp $
* @link http://pear.php.net/package/Translation2
*/
@@ -44,7 +44,7 @@
* @author Michael Wallner <mike at php dot net>
* @copyright 2004-2005 Lorenzo Alberton, Michael Wallner
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: gettext.php,v 1.24 2005/03/30 17:39:57 mike Exp $
+ * @version CVS: $Id: gettext.php,v 1.25 2005/05/31 18:15:31 quipo Exp $
* @link http://pear.php.net/package/Translation2
* @see /docs/gettext_readme.txt for an usage example
*/
@@ -101,10 +101,11 @@
);
}
- foreach ((array) $this->_domains as $domain => $path) {
- bindtextdomain($domain, $path);
+ if ($this->_native) {
+ foreach ((array) $this->_domains as $domain => $path) {
+ bindtextdomain($domain, $path);
+ }
}
-
$this->setLang($this->options['default_lang']);
return true;