note 34118 deleted from function.gettext by didou

From: Date: Mon, 15 Jan 2007 09:21:19 +0000
Subject: note 34118 deleted from function.gettext by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121727@lists.php.net to get a copy of this message
Note Submitter: me at junglerat dot org ---- 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'); ... ?>

« previous php.notes (#121727) next »