New home › Forums › Pro Add-on › Troubleshooting › How to translare “More Details” with Polylang
Tagged: language, more details, polylang, translation
- This topic has 0 replies, 1 voice, and was last updated 2 years, 4 months ago by Vanessa.
-
AuthorPosts
-
April 24, 2021 at 3:30 pm #68597UnaParticipant
First of all, thank you for developing this nice plugin.
I have a problem with translation.
First of all, the right locale code for Latvian language is wp-google-maps-lv.mo not lv_LV. This is also the same in WordPress core translation and other plugins. Please check here https://translate.wordpress.org/ the right locale code.
When I repair that, I have a problem with “More Details” text under the map.
I use map with Basic Table and Polylang language plugin. In Latvian I have the right translation, but when I change the language of page to English, the text stays in Latvian. I realized the problem comes from fact that maps plugin takes the labguage set in General settings -> Site language, but not from get_locale().
The text in the map’s info window is translated right and there I see the right language.
Hope you can help me to solve this problem.Attachments:
You must be logged in to view attached files.April 26, 2021 at 3:04 pm #68607VanessaModeratorHi there,
Thank you so much for getting in touch, we do appreciate your time tremendously.
Could I kindly ask you to please provide us with a link to your map page so that we might take a closer look?
Looking forward to assisting you further.
Kind Regards,
Vanessa RufoApril 30, 2021 at 8:50 am #68660VanessaModeratorHi there,
Thank you for providing the link to your map page.
Could I kindly ask you to please navigate to Maps -> Settings -> Advanced Settings -> Please paste the following code snippet into your Custom JS Editor.
jQuery( function($){
jQuery(‘.wpgmza-link a’).text(‘More details’);});
Once added, please save the settings and confirm if this helps?
Kind Regards,
Vanessa Rufo -
AuthorPosts
- You must be logged in to reply to this topic.