Re: [PHP] Detect language date(F)

2004-01-26 Thread Martin Luethi
my example should also work with fr or fr-ca what do you get with: echo $_SERVER["HTTP_ACCEPT_LANGUAGE"]; ? the locale-string depends on your webserver. under linux you have to build them first (e.g.: locale-gen) take a look at the user-notes under http://ch2.php.net/manual/de/function.setlocale.ph

Re: [PHP] Detect language date(F)

2004-01-26 Thread John Taylor-Johnston
But even if I change my browser language to de-ch, I stll get "February" when I run it. http://www.glquebec.org/glq2-test/english/testlanguage.php ? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detect language date(F)

2004-01-26 Thread John Taylor-Johnston
I see what you are doing, But don't see where to create fr or fr-ca, for my example? John Martin Luethi wrote: > the variable $_SERVER["HTTP_ACCEPT_LANGUAGE"] contains the Accept-Language- > Header from the browser > -> http://ch2.php.net/reserved.variables > > with setlocale() you can set locale

Re: [PHP] Detect language date(F)

2004-01-26 Thread Martin Luethi
the variable $_SERVER["HTTP_ACCEPT_LANGUAGE"] contains the Accept-Language- Header from the browser -> http://ch2.php.net/reserved.variables with setlocale() you can set locale-informations -> http://ch2.php.net/function.setlocale finally strftime() formats a date with the current locale-informatio