Re: [PHP] gettext() troubles

2005-09-23 Thread Jochem Maas
Aaron Gould wrote: Denis Gerasimov wrote: anyone who has worked with locales on different machines/platforms will probably run into the problem that locales are different and/or differently named on alot of systems... for this reason (I believe) set_locale() allows you to pass an array of

Re: [PHP] gettext() troubles

2005-09-23 Thread Aaron Gould
Denis Gerasimov wrote: Here's what I use to set my language (to French in this case). It works 100% of the time for me: // Set locale to preferred language setlocale(LC_ALL, 'fr_FR'); bindtextdomain('messages', $_SERVER['DOCUMENT_ROOT'].'/locale'); textdomain('messages'); I don't d

[PHP] gettext() troubles

2005-09-23 Thread Denis Gerasimov
Hello List, I am facing some troubles with gettext. phpinfo() says that both of gettext and iconv extensions are installed properly, I can call gettext() function but it never translates my strings returning the original key every time. Here is the code: Below is the output: D