on Mon, 29 Sep 2003 10:24:09 +0200 Christophe Chisogne wrote: >> This works good, but if the .mo file gets changed the old content is >> returned by calls to gettext, until I restart Apache.
CC> gettext uses a caching method to speed up looking translation CC> strings, which explain why Apache must be reloaded [1] That's bad, as I cannot restart Apache at my remote hosts computer.. I also found a blog entry, saying that "Because when PHP is running as an Apache module, each page gets handled by a separated thread of the same process. And the problem is, you set the language by writing a variable to the environment (puttenv()). That's how gettext works. Unfortunately, changing the environment affects the whole process... thus all running (sleeping indeed ) threads for that process!" see http://fplanque.net/Blog/devblog/2003/08/20/p355 That would mean that two different people accessing the page at the same time could get mixed up translations, as through PutEnv usage? CC> Perhaps you can try php-i18n mailing list, which is really low CC> traffic. Thanks for the hint. Just went through the archive, but did not find a good solution. Also discovered this list in the past days through google. So, I think I'll go back to simple include(). Still I have to think about using a single big one for each language or seperate it for sections with more content.. :/ -- shinE! http://www.thequod.de ICQ#152282665 PGP 8.0 key: http://thequod.de/danielhahler.asc I'm sitting in silence or radio music. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php