The browser's locale is a MUCH better practice. Also consider that maybe you have someone visiting a far away place but they don't speak the language... it's annoying if a site they visit from the US in English comes up there in Chinese or Hindu or Swahili and they have NO idea how to even change the language...

Yes, I speak from personal unpleasant experience (well, and of course client discussions).

-David


On Feb 26, 2009, at 3:53 PM, Adrian Crum wrote:

Why not use the browser's locale setting? Those IP databases can have errors, or the user's IP might not be included in the database.

-Adrian

masionas wrote:
Hi Guys,
I am looking for similiar thing - get geo Country by IP. What I would like is to automatically set session locale based on visitor's IP. Example, for United Kingdom's users it will set UK's locale and hence show the respective
content etc.
The question is does ofbiz have something already built-in for that? Or
should I go with the implementation based on
http://ip-to-country.webhosting.info/ db? Load that csv db in ofbiz entity
and have a <preprocessor> which does lookup etc.

Reply via email to