LLLLLLL Posted November 8, 2014 Share Posted November 8, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/292352-reliability-of-http_accept_language-for-browser-language-detection/ Share on other sites More sharing options...
kicken Posted November 8, 2014 Share Posted November 8, 2014 You can use it as a starting point. Always give the user a way of overriding the language though. Quote Link to comment https://forums.phpfreaks.com/topic/292352-reliability-of-http_accept_language-for-browser-language-detection/#findComment-1496071 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.