Re[4]: [PHP] Q on setlocale...
| From: | Tom Rogers | Date: | Tue, 30 Sep 2003 16:39:10 +0000 |
| Subject: | Re[4]: [PHP] Q on setlocale... | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164424@lists.php.net to get a copy of this message | ||
Hi,
Wednesday, October 1, 2003, 2:15:10 AM, you wrote:
j> "Tom Rogers" <trogers@kwikin.com> wrote in message
j> news:59297262953.20031001014737@kwikin.com...
>> Those locales actually have to be available or they will be ignored and
j> that
>> will depend on what type of system your running on.
j> OK, I'm on Windows 2k, and after reading Microsofts docs, I thought it was
j> all there.
j> 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.
j> Restart the server?
j> No way to set this on the fly?
>> (Did I mention manuals :)
j> No, but I got 2 private messages stating "RTFM" and no other comments. They
j> were a big help. :/
j> I'm beginning to think this is tougher than I thought.
j> :/
j> What I'm trying to do is have my new Class be aware of the LOCALE setting
j> and take advantage of that info to return translated strings based upon that
j> setting.
j> I was hoping not to have a method in my Class to define LOCALE, I wanted to
j> pick it up from the system, and even let the user set it on the fly.
j> Thanks for your help Tom.
j> Walter
Under windows you could go to control panel ->regional settings ->input locales
and try adding a few and see if that helps.
I only know about apache and that did need a restart to get it to recognize the
new locales available as I think it caches that information.
--
regards,
Tom