On Tue, February 12, 2008 3:32 pm, Jason Pruim wrote:
>
> On Feb 12, 2008, at 4:24 PM, Daniel Brown wrote:
>
>> On Feb 12, 2008 2:53 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote:
>>> Browsers generally send the the HTTP_ACCEPT_LANGUAGE header in a
>>> request.
>>>
>>> $_SERVER[HTTP_ACCEPT_LANGUAGE] => en-gb,en;q=0.5
>>>
>>> thus with mine, preference is en-gb, failing that anything en;
>>> failing
>>> that whatever you've got.
>>>
>>> ACCEPT_CHARSET is worth a check often aswell; finally POST requests
>>> can
>>> also have a CONTENT_LANGUAGE specified which describes the lang of
>>> the
>>> content.
>>
>>    Yes, but as has been said in the past, you can't rely on browser
>> headers, because they can easily be forged.  ;-P
>>
>>    I can see it now....
>>
>>    "That'll mess with them.  Now they'll think I'm Mexican!"
>
>
> Which goes back to giving them an easy way of changing the display
> language :P If someone intentionally messes with the language headers
> they deserve to get a language they may or may not know! :P

I was at an internet cafe in Paris once.

Despite having a French keyboard layout and a browser sending fr as my
preferred language, my French language skills were no better than when
I walked in... :-)

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to