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.