Skip Navigation

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 dobosI 1 year, 11 months ago.

Assisted by: Mohamed Sayed.

Author Posts
May 1, 2023 at 4:05 pm #13565721

dobosI

Hello. I have a problem with a plugin from Element Pack Pro when I try to translate from Romanian to English. Specifically, with the Tabs widget. It does not translate the text selected with Elementor Template. I tried to register it in <wmpl-config>, but it still doesn't find the content that needs to be translated. Can you please help me?

Capture.PNG
May 1, 2023 at 5:02 pm #13565781

dobosI

I have this problem on the domains page. On the homepage, I have a similar element, but there it works fine.I've used this XML configuration, but it still doesn't work properly on the domains page.<wpml-config>
<elementor-widgets>
<widget name="bdt-slider">
<fields-in-item items_of="tabs">
<field>tab_title</field>
<field>tab_content</field>
<field>tab_template</field>
</fields-in-item>
<fields>
<field>button_text</field>
</fields>
</widget>
<widget name="bdt-tabs">
<fields-in-item items_of="tabs">
<field>tab_title</field>
<field>tab_content</field>
<field>tab_sub_title</field>
<field>tab_template</field>
</fields-in-item>
</widget>
</elementor-widgets>
</wpml-config>

Capture2.PNG
May 2, 2023 at 9:28 am #13568971

Mohamed Sayed

Hi there,
Thanks for contacting WPML support, I will be glad to help you.

So the XML works with the homepage and you can see the tab content in WPML's translation editor.

If you're using the same widget on the domains page, please try the following steps:

- Edit the page in the default language
- Make a small change then save the page
- Update the translation and check if you can see the content.

Let me know please if that helps.

Regards,
Mohamed

May 2, 2023 at 10:29 am #13569749

dobosI

It still doesn't work. The weird part is that on the homepage it was working before adding that XML configuration. Below, I'll show you what tab_content sees instead of my template.

Capture3.PNG
May 2, 2023 at 3:07 pm #13571945

Mohamed Sayed

Hi,

Please note that the Element Pack Pro plugin is not listed on the WPML compatibility list for the plugins - https://wpml.org/plugin/. This means that our compatibility team has not tested it yet, so it could be a compatibility issue.

I have created this clean sandbox setup on our servers here:
hidden link (one-click login)

I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) and also install Elementor + Element Pack Pro plugins and try to recreate the issue on a test page.

Please don't install anything else like plugins that are not necessary, on a clean sandbox we try to use just the WPML plugins and the plugin/theme that's part of the issue.

Please let me know how that goes and what you are able to find.

Regards,
Mohamed

May 2, 2023 at 8:47 pm #13574137

dobosI

I have recreated a layout in the sandbox. As you can see, everything is translated, but the elements in the tab are not

May 3, 2023 at 10:23 am #13577307

Mohamed Sayed

Hi,
Thanks for replicating the issue.

I think this is a compatibility issue, I suggest contacting the Element Pack authors and checking with them. Maybe they can provide a quick fix, you can also ask them to join our Go Global program so our compatibility team can work with them to make the plugin compatible.

They can contact us at this link: https://wpml.org/documentation/support/go-global-program/

The XML you tried allows the translation of the text added when you use the "Custom content" source (Please see Screenshot_1), but when using the "Elemntor template" source there is no way to translate the template ID (Screenshot_3). Even when I try to translate the page manually with Elementor, I can see the original template only in the second language.

As a workaround, you can use the Custom content source instead of the Elemntor template and add the text directly in the tab content, then you can use the XML you provided to translate this text in the WPML's translation editor.

I'm also checking with our 2nd tier supporters if they can provide another workaround for this issue and will update you here once I get their reply.

Regards,
Mohamed

Screenshot_3.png
Screenshot_1.png
May 5, 2023 at 5:39 pm #13596221

dobosI

Hello. I want to know if you managed to find a solution? I wouldn't be able to change the content of the tabs because there would be too many changes to make.

May 6, 2023 at 12:15 pm #13598377

Mohamed Sayed

Hi there,
Thanks for your patience!

Please try the following workaround:

1. Go to Dashboard > Templates > Saved Templates
2. Switch the admin language to English from the top admin bar
3. Get the ID of the translated template hidden link
4. Go to WPML > Configuration > Custom XML Configuration, and add the following code:

<wpml-config>
  <elementor-widgets>
    <widget name="bdt-tabs">
      <fields-in-item items_of="tabs">
        <field>tab_title</field>
        <field>tab_sub_title</field>
        <field>tab_content</field>
        <field>template_id</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

5. Add this code to the functions.php file of your theme:

add_filter( 'wpml_tm_job_field_is_translatable', '__return_true' );

6. Edit the page in the default language and make a small change then update the translation
7. This time the template ID will appear in the translation editor so you can use the translated template ID

I tested this on the sandbox and it works, please check here hidden link

Regards,
Mohamed

Screenshot_157.png
Screenshot_156.png
May 6, 2023 at 5:42 pm #13598933

dobosI

It worked perfectly. Thank you very much for help.