Re: Problem with gettext
| From: | Eneko Lacunza | Date: | Tue, 21 Jan 2003 18:07:42 +0000 |
| Subject: | Re: Problem with gettext | ||
| References: | 1 2 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-417@lists.php.net to get a copy of this message | ||
Hi,
On Sat, 11 Jan 2003 16:30:18 +0100, Jan Schneider wrote:
> Marcos Lois Bermúdez wrote:
>> I have RH7.3 with php and gettext support, and i get this strange
>> beaviour: if the mo files are under document root of web server seems
>> to work well, but if put the mo files in a directory outside the doc
>> root of the web server it work some times, i get the messages
>> translated, but when i reload the page some times i get no translated
>> the page in some times.
>>
>> It's normal?
>> it's a bug?
> Yes. Yes.
> Using gettext in PHP I have seen strange behaviour so often I can't
> count. This particular behaviour can sometimes be fixed by restarting
> the webserver. No idea why.
This was very helpfull, as I was suffering the same problem. Restarting
the apache server made it work well.
Interestingly enough, some PHP pages worked well at all, but some others
failed; using one locale they failed 3 times out of 4; with another locale,
it failed 1 time out of 4. The failing ones where in one directory
(parent) and the working one in another (subdirectory) (couldn't test with
more,
sorry).
My test were done in a Red Hat 7.3 with updated stock apache/php/gettext
(4.1.2).
Does anyone know if there's another way to "fix" this? I don't want to
have the production server broken and I don't have administrative access
to it (just ftp).
Thanks a lot.
Eneko Lacunza
Enlar/Euskalamiga