[horde] Horde random language changes ...
Kostas Katsamakas
kmak at ccf.auth.gr
Fri May 14 06:47:30 UTC 2010
I have recompiled apache without threads, with MPM prefork as recomended
in php.net
Unfortunatelly this didn't solve my problem with random language changes.
Has anyone any suggestions ?
Thank you
Kostas Katsamakas wrote:
> I have setup horde to use Greek as the default language. But some
> times totally randomly it changes back to English.
> Horde uses gettext for the translations. To set the locale it also
> uses setlocale()
>
> In php's setlocale() documentation it says:
>
> *Warning*
>
> The locale information is maintained per process, not per thread. If
> you are running PHP on a multithreaded server API like IIS or Apache
> on Windows, you may experience sudden changes in locale settings while
> a script is running, though the script itself never called
> *setlocale()*. This happens due to other scripts running in different
> threads of the same process at the same time, changing the
> process-wide locale using *setlocale()*.
>
>
> Is it possible ,since i have apache installed with threads, that some
> kind of race condition in calling setlocale() exists also in linux?
> This could explain the randomness of the language change.
> Has anyone any other suggestion in this kind of language problem?
>
> My server running horde is a
> gentoo with 2.6.30 kernel
> apache 2.2.15
> php 5.2.13
> horde 3.3.6
> imp H3 4.3.4
>
> Thank you
>
More information about the horde
mailing list