On Tue, 17 Oct 2006 08:18:47 +0100, Stut wrote:
John Taylor-Johnston wrote:
This is what http_accept_language gives me depending on which browser.
Depending on the visitor in my region, it will either be French or
English.
_SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3
This is what http_accept_language gives me depending on which browser.
Depending on the visitor in my region, it will either be French or English.
_SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3
_SERVER[HTTP_ACCEPT_LANGUAGE] fr-ca,en-us;q=0.5
Is this a reasonable approach?
John Taylor-Johnston wrote:
This is what http_accept_language gives me depending on which browser.
Depending on the visitor in my region, it will either be French or
English.
_SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3
_SERVER[HTTP_ACCEPT_LANGUAGE] fr-ca,en-us;q=0.5
On Tue, October 17, 2006 1:13 am, John Taylor-Johnston wrote:
This is what http_accept_language gives me depending on which browser.
Depending on the visitor in my region, it will either be French or
English.
_SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3
Stut,
Richard,
Thanks for the feedback!
Quebec has a language law, so I'm obligated to serve French first. I can
wiggle around that if the preferred language is other.
John
Is this a reasonable approach?
if(stristr($_SERVER[HTTP_HOST],fr))
{ include(french.htm);}else{ include(english.htm);}
5 matches
Mail list logo