Yasuo Ohgaki wrote:
> 
> Hartmut Holzgraefe wrote:
> > Yasuo Ohgaki wrote:
> >
> >> I think gettext module is also a good one to be enabled by default
> >> or recommend users strongly.
> >
> >
> > well, as everything depending on setlocale() or putenv("LANG=...")
> > is *not* threadsafe this might be a not-so-good idea right now ...
> >
> 
> Note in the manual page says setlocale() is not required,
> so I was supposing it's not needed.
> 
> Anyway, it seems it's been modified recently and I haven't
> use gettext for long time. Need some research.

I was recently i18n'ing a site and discovered that with RH 6.x (PHP
4.1.1) putenv("LANGUAGE=$lang"); is enough while with RH 7.3 (PHP 4.2.1)
only setlocale(LC_ALL, $lang); works. Plus note the fact that single ISO
codes no longer works with RH 7.3 (for ex. "en" or "es") you have to use
"en_US" or "es_ES".


Tomas V.V.Cox

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to