Re: Re: Suggestion about native DB support.
| From: | Tomas V.V.Cox | Date: | Sat, 22 Jun 2002 16:59:51 +0000 |
| Subject: | Re: Re: Suggestion about native DB support. | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85492@lists.php.net to get a copy of this message | ||
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