Re: gettext problem - translation fails

From: Date: Tue, 01 Apr 2003 11:00:06 +0000
Subject: Re: gettext problem - translation fails
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-529@lists.php.net to get a copy of this message
On 1 Apr 03 at 9:59, Eneko Lacunza wrote: > > change domain name or locale path in your php code after each update > > of .mo files, or you have to restart apache. > > This is quite strange. I don't have any knowledge about how glibc is > coded, but it seems that after "some time", the problem stabilizes and > all instances of apache translate correctly. Maybe it is that all "old" > instances crashed and new ones have the new .mo file. Or admin has set up Apache to run only limited number of requests in each child. As your .mo files are loaded after server fork, it fixes problem too. Only problem is that for some time you sometime get page with new translation, and sometime with old. > Although I don't know the problems involved here, I would suggest > trying to fix this in new glibc versions, maybe transparently, or maybe > with a simple function call (i.e. domain_refresh) that would force a > fresh load of the text domain. It would be nice. Long running processes are more and more common. Petr Vandrovec

« previous php.i18n (#529) next »