gettext: changed .mo file, caching issue
| From: | daniel hahler | Date: | Sun, 28 Sep 2003 19:14:01 +0000 |
| Subject: | gettext: changed .mo file, caching issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-164176@lists.php.net to get a copy of this message | ||
Hello php-general,
I init gettext with
putenv('LANGUAGE='.$language);
putenv('LANG='.$language);
// Specify location of translation tables
bindtextdomain ("messages", "./locale");
// Choose domain
textdomain ("messages");
where $language is either "de" or "en".
This works good, but if the .mo file gets changed the old content is
returned by calls to gettext, until I restart Apache.
This is with my local server.
On the remote server, where I upload the files there is even no
translation ATM, although there already has been some.
my local server is:
Apache 1.3.27
PHP 4.3.3
LoadModule php4_module c:/www/php/sapi/php4apache.dll
remote server is also Apache/1.3.27 (Linux/SuSE) PHP/4.3.3
mod_perl/1.27
Any solutions?
--
shinE!
http://www.thequod.de ICQ#152282665
Dj Sosse - Summerscream II rocks.