Osclass Support Forums

Osclass plugin support => Radius Search Plugin => Topic started by: Dan Dan on December 08, 2019, 08:42:28 PM

Title: Translation map message. How?
Post by: Dan Dan 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
Title: Re: Translation map message. How?
Post by: MB Themes on December 09, 2019, 10:24:47 AM
@Dan
Thanks for a nice tip ;)
Title: Re: Translation map message. How?
Post by: Dan Dan 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