note 34118 added to function.gettext

From: Date: Wed, 16 Jul 2003 16:24:27 +0000
Subject: note 34118 added to function.gettext
Groups: php.notes 
Request: Send a blank email to php-notes+get-52207@lists.php.net to get a copy of this message
I experienced a problem with gettext(). After restarting apache it stopped translating. I found that setting both LC_ALL, LANG and LANGUAGE solved my problem with gettext() on a standard installation of Mandrake 9.0. Example: <?php .... setlocale(LC_ALL,'en_US:en'); putenv('LANG=en_US:en'); putenv('LANGUAGE=en_US:en'); ... ?> ---- Manual Page -- http://www.php.net/manual/en/function.gettext.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34118 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34118&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34118&report=yes

« previous php.notes (#52207) next »