Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Language Guess from IP

by gjb (Vicar)
on Dec 05, 2002 at 13:31 UTC ( #217755=note: print w/replies, xml ) Need Help??


in reply to Language Guess from IP

Have a look at Apache::GeoIP or IP::Country. That leaves you with the nice task to decide what language to pick for which country. Especially nice for mine where you can choose between Dutch and French, the wrong guess won't be appreciated ;-)

Hope this helps, -gjb-

Update: I forgot about our German speaking community, so I'm typing this hanging from a tree (I hope you get my point ;-)

Replies are listed 'Best First'.
Re: Re: Language Guess from IP
by mpeppler (Vicar) on Dec 05, 2002 at 18:44 UTC
    Especially nice for mine where you can choose between Dutch and French, the wrong guess won't be appreciated ;-)
    Indeed. I was in Switzerland this summer, and google kept giving me www.google.ch, in German. I was connecting in the French speaking part of the country, but that didn't have any effect, of course - very annoying.

    Guessing may be OK for some things, but it's better if you let the user select...

    Michael

      Actually, Google goes by the Accept-Language header; for me it seems to do so, anyway. My browser is set to ask for English pages, and consequently I stay on google.com, even though I'm in Germany, where you're usually redirected to google.de.

      Makeshifts last the longest.

        Actually, Google goes by the Accept-Language header
        Hmmm... didn't seem to work for me. I was using my linux laptop, dialing in to ATT Global in Geneva. The language setting for my Mozilla config on the laptop is English.

        Oh well...

        Michael

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://217755]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2021-03-01 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?