Jump to content

Archived

This topic is now archived and is closed to further replies.

LLLLLLL

Reliability of HTTP_ACCEPT_LANGUAGE for browser language detection?

Recommended Posts

Can I rely on the $_SERVER variable of HTTP_ACCEPT_LANGUAGE to get the language of the browser? I know that some browsers don't send things the same way, and even some servers may not use all variables. Is this the most common way to determine the user's language? Is there another or more preferred way?

 

Thank you.

Share this post


Link to post
Share on other sites

You can use it as a starting point. Always give the user a way of overriding the language though.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.