user-location

How to decide user's language

你离开我真会死。 提交于 2019-12-08 07:48:44
问题 I am looking for the best way to decided web user's language so that content can be presented in his native language. I want to know about pros and cons of different techniques. Few options I am looking at are: Using PHP geoIP extension which uses Maxminds database (free version) Accessing user language from browser using http_negotiate_language As I mentioned I don't want to dive deeper about the states and cities. I just want switch content based on users location/language. Do you have any

How to decide user's language

与世无争的帅哥 提交于 2019-12-07 08:37:21
I am looking for the best way to decided web user's language so that content can be presented in his native language. I want to know about pros and cons of different techniques. Few options I am looking at are: Using PHP geoIP extension which uses Maxminds database (free version) Accessing user language from browser using http_negotiate_language As I mentioned I don't want to dive deeper about the states and cities. I just want switch content based on users location/language. Do you have any other suggestion? Taken from the MicroMVC framework . The following looks for a cookie that could be