|We don't bite newbies here... much|
Language Guess from IPby PetaMem (Priest)
|on Dec 05, 2002 at 13:25 UTC||Need Help??|
PetaMem has asked for the
wisdom of the Perl Monks concerning the following question:
for a web-project we need a nifty handling of language customisation for the users of a website. The site should make an attempt to guess the language of the user according to the IP where the request comes from. Alternatively this can be augmented by a hostname lookup and then examining the toplevel domain.
However - as for some domains you cannot be sure what language they correspond to - the IP solution should give better results. Yes - the user may change his defaults etc. its just the first guess if the user has no cookie set yet.
I vaguely remember, that there are some IP-chunk <-> country relation tables, but wonter if someone has already used them or if there already is some module.