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

Bug #4476 GetText !_native not works without gettext extension
Submitted: 2005-05-30 12:05 UTC
From: sergey at pushok dot com Assigned: quipo
Status: Closed Package: Translation2
PHP Version: 4.3.11 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-05-30 12:05 UTC] sergey at pushok dot com
Description: ------------ Some time while ago I contribute some code to work with PO gettext files directly. I get latest version, where this fix included and found that without PHP gettext extension it not works. This is because the code below: foreach ((array) $this->_domains as $domain => $path) { bindtextdomain($domain, $path); } I.e. function bindtextdomain called even it is not needed and not exist (PHP gettext not installed). This code bellow fixes this: if ($this->_native) { foreach ((array) $this->_domains as $domain => $path) { bindtextdomain($domain, $path); } }

Comments

 [2005-05-31 18:19 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!