Answer the question
In order to leave comments, you need to log in
Determine the location by IP with translation into the desired language?
I have the user's IP, using geoip I get the country, city, and so on. but only in English .
Example:
'{"city": "Beijing", "region_name": "22", "time_zone": "Asia/Harbin", "longitude": "116.38830000000002", "metro_code": "", "country_code3": "CHN", "latitude": "39.928899999999999", "postal_code": "", "country_code": "CN", "country_name": "China"}'
Answer the question
In order to leave comments, you need to log in
Download localization files:
localize.drupal.org/translate/downloads?project=context_geoip
And use gettext
I highly recommend the
www.wipmania.com
project Unlike
various databases that provide location information based on official registration documents of the owner's company, this project gives real and 99.99% accurate data.
if we are talking about MaxMind GeoIP, then they have localizations dev.maxmind.com/faq/geoip#localized_cities
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question