dantzig Posted January 26, 2010 at 05:31 PM Share Posted January 26, 2010 at 05:31 PM Hi, I want to be able to change the language of API. As far as I know, for those languages which don't have their own google maps urls (e.g. maps.google.de), the way to change the API language is to add ?&hl=xx to the url. (xx being the language code supported). I tried to change the API url in the configuration of geomaps to maps.google.com/maps?hl=xx, but it didn't work. Then I searched for the code. I was able to find the one in com_jreviews_addons\geomaps\plugins\geomaps.php, and I added &hl=xx to the following line: $this->google_api_url = $this->google_url."/maps?file=api&v=2&async=2&key={$this->google_api_key}&sensor=false"; . It did work, but only worked on the map in submission form. I couldn't find the way to change the map language in blogview and detail views. I guess map is called via map_detail.thtml (for detail view) and map_results.thtml (for blogview) but I couldn't go further and change the language. Can you help? Thanks Link to comment
dantzig Posted January 26, 2010 at 05:42 PM Author Share Posted January 26, 2010 at 05:42 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted January 27, 2010 at 05:01 PM Share Posted January 27, 2010 at 05:01 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
dantzig Posted January 27, 2010 at 05:38 PM Author Share Posted January 27, 2010 at 05:38 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts