How to translare “More Details” with Polylang

New home Forums Pro Add-on Troubleshooting How to translare “More Details” with Polylang

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #68597
    Una
    Participant

    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.
    #68607
    Vanessa
    Moderator

    Hi 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 Rufo

    #68660
    Vanessa
    Moderator

    Hi 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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.