*

Dan Dan

  • *
  • 30 posts
Translation map message. How?
« on: December 08, 2019, 08:42:28 PM »
In the mobile version I could not translate the message received on the map eg: "use two fingers to move .."
I replaced in the file listings_map.php the line:

Code: [Select]
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3&key=<?php echo osc_get_preference('api_key''plugin-rad_search'); ?>"></script>
whit:

Code: [Select]
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3&key=<?php echo osc_get_preference('api_key''plugin-rad_search'); ?>&language=ro&region=RO"></script>In my case,  ro and RO
Now I have the translation into the desired language.  Maybe, this post will be of necessity to others.

Thanks

*

MB Themes

Re: Translation map message. How?
« Reply #1 on: December 09, 2019, 10:24:47 AM »
@Dan
Thanks for a nice tip ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on February 04, 2020, 12:27:54 PM
*

Dan Dan

  • *
  • 30 posts
Re: Translation map message. How?
« Reply #2 on: February 03, 2020, 09:52:19 PM »
I'm coming back with a supplement.
I found that when publishing a new article using a mobile phone the message received "use two fingers to move .."
was not translated (in my case in Romanian)

I changed in the index.php file, line 693
Code: [Select]
osc_register_script('radius_map_publish_js', 'https://maps.googleapis.com/maps/api/js?v=3&key=' . osc_get_preference('api_key', 'plugin-rad_search'));whit:
Code: [Select]
osc_register_script('radius_map_publish_js', 'https://maps.googleapis.com/maps/api/js?v=3&key=' . osc_get_preference('api_key', 'plugin-rad_search') . '&language=ro&region=RO');
Now, the message is translated in Romanian.
Maybe this change will be of interest to others.
Greetings, Dan