Re: gettext() troubles

[email protected] (Michael Wallner)
Newsgroups php.general,php.i18n
Organization IWORKS
Message-ID <[email protected]>
Hi Denis Gerasimov, you wrote:

> I am facing some troubles with gettext.
> ...
> putenv("LANG=ru_RU");

Speaking from my experience, you need to use only "ru" there
on Windows...

> setlocale (LC_ALL,"ru");

...but you definitly have to use the Windows abbreviation
for the corresponding locale in the setlocale call.

Have a look at PEARs I18Nv2 module which attempts to solve
this discrepancy.

Regards,
-- 
Michael - < mike(@)php.net >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.