Geo Redirects

Permalink
I'm gone build a multi-language site using C5. Any one ever thought about the use of Geo Redirects? Would be nice to point users to their language automaticly.

Any one got an idea on how to realise this? I know there are some scripts out there. But hopefully someone has some experience setting this up?

Cheers,
Kris

Dutchwave
 
frz replied on at Permalink Reply
frz
when we deal with that we use this database table we found somewhere that lists out most of the major IP ranges and maps them against countries. its not perfect, but its pretty extensive.

we then set a session on what country the person should be on, and do some thinking about override/priority.. (as in:
1)if no choice is made, use IP list
2)if they pick from some list of countries in the site footer, use that
3)if they're logged in as a user and that user is in a country, use that...

depending on how your site is setup you might change that around and whatnot, but thats the general approach we use.

happy to help set it up for you as a couple hour consulting project if you'd like: franz at concrete5.org
Fernandos replied on at Permalink Reply
Fernandos
Hi!

Geolocation is only usefull for you if you want to something usefull with the data. Because most geo-ip databases are expensive.

My attempt to do multilingual sites with c5 is following:http://www.concrete5.org/index.php?cID=16230...

I'll keep on posting, when I got news.

cheers
Fernandos
Dutchwave replied on at Permalink Reply
Dutchwave
Thank you for both replies. Also found out about the browser language recognition. For know I think this approach will be sufficient. Also might work better in countries like Belgium with 2 main languages. I figure a ip-list might not work as sufficient in such a case.
Though it will be better in other cases, it's not worth it in this stage.
Remo replied on at Permalink Reply
Remo
this is what I'm doing most of the time.. Also because the geoip module isn't installed on every server. Without it, you need to add a few more php code lines compared to browser language detection.

It's also nice because tourists get the correct result. (an American in Switzerland get's an english page if he's using an English browser)
Fernandos replied on at Permalink Reply
Fernandos
hi!

I finished the code for language detection plus cookies to save a request the next time. Now I'd like to implement it on the home page (root). But where do I put the php code??
Fernandos replied on at Permalink Reply
Fernandos
Okay, I managed to get everything working, as I finish my corp project. I'll be releasing this for free as a block.