This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Lauren 2 weeks, 3 days ago.

Assigned support staff: Lauren.

Author Posts
September 26, 2019 at 3:15 pm #4648313

Gale Lewis

I am trying to: Translate all front end strings for the Divi Extended Map pluign and Registration Magic plugin

Link to a page where the issue can be seen: hidden link
hidden link

I expected to see: Welsh translations for the login area (e.g. username, login etc.) and for the words Title, Categories and Description in the table below the map.

Instead, I got: The English words that are currently there.

September 26, 2019 at 3:57 pm #4648579

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Those would not be the correct strings. It may be that the strings are stored in a different table. Would it be okay for me to access your site and use the Adminer plugin to try and find the strings in the database?

If so, I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.

- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

September 27, 2019 at 1:57 pm #4654723

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

I dug around a bit and found that the RegistrationMagic plugin is not compatible with WPML. The custom fields for the forms are stored in a custom table, so they are not able to be translated via WPML String Translation because we cannot scan them. We had a previous client ask them to join our Go Global program without any success, but it wouldn't hurt for you to suggest it to them as well. You can reference this ticket: https://wpml.org/forums/topic/different-translation-problems-woocommerce-registrationform-header-footer/

In regards to the Divi Map Extended plugin, I need to be able to switch to a default theme, which will allow me to see the shortcodes that this plugin uses. Hopefully then I will be able to register the shortcodes in WPML Custom XML Configuration. I have set up a staging site so that I can test this. Please install the Divi theme and the Map Extender plugin there so that I can further troubleshoot. Here is the site access:
Login: hidden link
Username: demo
Password: 97GwOJz5X2sr

Let me know once you have those activated and I will continue there. Thanks!

September 27, 2019 at 2:36 pm #4655233

Gale Lewis

Thank you for investigating. I will contact registration magic. I have uploaded Divi and Divi Extended Maps to the test site for you.

Many thanks,
Gale

September 27, 2019 at 6:30 pm #4656363

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

For the Divi Map Extended, please go to WPML -> Settings -> Custom XML Configuration and add the following:

<wpml-config>
    <shortcodes>
        <shortcode>
            <tag>et_pb_map_pin_extended</tag>
            <attributes>
                <attribute>title</attribute>
                <attribute>pin_website_text</attribute>
                <attribute>pin_website_url</attribute>
                <attribute>pin_email_text</attribute>
                <attribute>pin_email_url</attribute>
            </attributes>
        </shortcode>
    </shortcodes>
</wpml-config>

Then, update the page with the map and now when you view the translation, you should see the Map Pins available for translation.

Please let me know if you need any further assistance and I will be happy to help.

September 30, 2019 at 9:58 am #4663551

Gale Lewis

Hi Lauren,
Thank you for your reply. It's not the map pins I need to translate. I found a work around for that by editing the translated page directly. It is the table titles below. The ones that say "Title Categories Description".
Many thanks,
Gale

September 30, 2019 at 4:13 pm #4666533

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thanks for clarifying. I was able to reproduce this in the test site that I set up, so I have escalated this to our compatibility team so they can take a closer look. I will update here as soon as I have more information.

October 1, 2019 at 5:38 pm #4674417

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Our compatibility team found a workaround. Please try this:

in wp-content/plugins/dwd-map-extended/includes/modules/MapExtended/MapExtended.php
changes lines 1719, 1721 and 1723 to:

$marker_listing_title = __($this->props['marker_listing_title'], 'et_builder');
$marker_listing_address = __($this->props['marker_listing_address'], 'et_builder');
$marker_listing_description = __($this->props['marker_listing_description'], 'et_builder');

After changing these lines, the translations that I had previously added in WPML -> String Translation displayed on the frontend. Please note you may need to update or resave the translation.

Please let me know if this resolves the issue on your site as well.

October 2, 2019 at 9:56 am #4678763

Gale Lewis

Hi Lauren,
Thank you for this. Is there anyway I can add the code you sent to the functions file of my child theme so it wont get overwritten when the plugin updates?
Many thanks,
Gale

October 2, 2019 at 4:48 pm #4682285

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Unfortunately there is not, but if you confirm that it works on your site, we will reach out to the author and ask them to include these changes in a future release. You may also want to mention it to the plugin authors, as that might help speed up the process.