How to change language depending on location

by 12 replies
14
I have someone who wants me to do a project for them a little bit out of my comfort zone. How would i go about the following:

If from England pull in the English version of a page.
If from Spain pull in the Spanish version of a page.

and so on.

Many thanks
#programming #change #depending #language #location
  • Banned
    [DELETED]
    • [1] reply
  • I like the idea of using the MaxMind API. Having used it for geo in the past, it's really easy to work with and very consistent. I'd definitely take that route, but still let the user click a flag icon for theirs language in case MaxMind gets it wrong.
  • Geo targeting with redirection to local content. If there isn't a match just show the home page.
  • hey
    u can use geo location option available with html 5 now. its really easy to u
    jen


  • If you don't want to go through the trouble of setting up and mainting Maxmind, cloudflare offers a free country level detection.

    However perhaps users would prefer to switch it via their country flag/abbreviation in the header.
  • IP Address Geolocation to Identify Website Visitor's Geographical Location may also be another choices for geolocation solution implementation to display different languages of different IP address.

    If you do not want to host the geo database, perhaps, you can get the web service at FraudLabs Credit Card Fraud Detection Web Service
  • Yeah... basically just grab the IP and show content accordingly. Not that hard of a task. :p
  • How to Get a Users Geo Location?

    Check out the above URL for an example. There was also aWSO last summer that had a plug in for Wordpress that would do this

    Jack
  • You should have a ip to country database and after finding ip address and then redirect as per the ip address
  • Thanks to share such a wonderful information about change language for location because I early to find same things.
  • Well, till date I haven't come across this particular thing. I was aware that there is a process that we ca change the language of the website in a particular location but wasn't aware of the process. I would try to use this method offline.
  • Banned
    [DELETED]
  • Hey :-) I am looking for a WP Plug in that will allow me to serve different ads in my widget areas according to where the user is located.

    If anyone made a WSO about it, please let me know - happy to buy through anyone's affiliate link depending how much it is!

    Or if this can be done in code (Im not a coder!) please could anyone help??

    Thanks in advance for any replies :-)

Next Topics on Trending Feed