Re: Re[2]: [PHP] Q on setlocale...

From: Date: Tue, 30 Sep 2003 16:15:10 +0000
Subject: Re: Re[2]: [PHP] Q on setlocale...
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-164416@lists.php.net to get a copy of this message
"Tom Rogers" <trogers@kwikin.com> wrote in message news:59297262953.20031001014737@kwikin.com... > Those locales actually have to be available or they will be ignored and that > will depend on what type of system your running on. OK, I'm on Windows 2k, and after reading Microsofts docs, I thought it was all there. Maybe not. > For example on my system (linux) I had to do > > localedef -ci es_ES -f ISO_8859-1:1987 es_ES > > and then a restart on apache to get the Spanish locale working. Restart the server? No way to set this on the fly? > (Did I mention manuals :) No, but I got 2 private messages stating "RTFM" and no other comments. They were a big help. :/ I'm beginning to think this is tougher than I thought. :/ What I'm trying to do is have my new Class be aware of the LOCALE setting and take advantage of that info to return translated strings based upon that setting. I was hoping not to have a method in my Class to define LOCALE, I wanted to pick it up from the system, and even let the user set it on the fly. Thanks for your help Tom. Walter

« previous php.general (#164416) next »