http://www.perlmonks.org?node_id=217753

PetaMem has asked for the wisdom of the Perl Monks concerning the following question:

Dearest Monks,

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.

bye,

PetaMem