Re: Problem with gettext
| From: | Jan Schneider | Date: | Wed, 22 Jan 2003 11:10:06 +0000 |
| Subject: | Re: Problem with gettext | ||
| References: | 1 2 3 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-421@lists.php.net to get a copy of this message | ||
Eneko Lacunza wrote:
Hi, On Sat, 11 Jan 2003 16:30:18 +0100, Jan Schneider wrote:Not really, as gettext is somehow broken and show this strange behaviour. This behaviour appeared more often when we used the two letter language codes. As soon as we switched to the ll_CC form (de_DE, en_US) things started to work much smoother. Jan.Marcos Lois Bermúdez wrote: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).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.