Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client reported an issue with their site's translation where some parts of the page, typically templates, were not being translated. They export pages as .xliff files for translation and then import them back, but the text from within the templates was not included in the export.

Solution:
We identified that the issue was due to compatibility problems with Jet Tabs, which were not providing the necessary WPML language configuration. To resolve this, we recommended the following steps:
1) Navigate to WPML>>Settings>>Custom XML Configuration.
2) Add the provided custom XML configuration code to register the Jet Tabs widgets for translation.

<wpml-config>
  <elementor-widgets>
    <widget name="jet-tabs">
      <fields-in-item items_of="tabs">
        <field>item_label</field>
        <field>item_editor_content</field>
        <field>item_template_id</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

3) Save the changes.
4) Insert the provided PHP code into the functions.php file of the child theme to allow translating numbers.

function wpmlsupp_7499_allow_translating_numbers( $is_translatable, $job_translate ) {
    $data = $job_translate['field_data'];
  
    if ( 'base64' === $job_translate['field_format'] ) {
        $data = base64_decode( $data );
    }
  
    if ( is_numeric( $data ) ) {
        return true;
    }
  
    return $is_translatable;
}
add_filter( 'wpml_tm_job_field_is_translatable', 'wpmlsupp_7499_allow_translating_numbers', 10, 2 );

5) Save the changes.
6) Update the page from the Elementor Editor after a minor modification to refresh the translation settings.
7) Update the translation from the Classic Translation Editor.

We also provided links to documentation for further assistance:

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket in our support forum.

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 13 replies, has 2 voices.

Last updated by Bigul 1 year, 5 months ago.

Assisted by: Bigul.

Author Posts
January 17, 2024 at 5:39 pm #15196437

brendaM-4

Hi support team:

Environment: 
* WordPress version 6.4.2
* Elementor Pro version 3.18.2
* Crocoblock version 1.2.8
* JetBlocks For Elementor version 1.3.9
* JetElements For Elementor 2.6.14
* Jet Engine version 3.3.3
* WPML version 4.6.8

We have discovered an issue with our site’s translation, where some parts of the page (typically templates) are not translated. We export pages as .xliff files for the translator and then import the translations. We do not use WPML automatic translation.
 
We suspect we have the settings configured incorrectly but are not sure this is the issue. The pages on which we have used the templates are partially translated, but the text from within the templates is not included in the export.
 
I have created a test environment for you and can provide admin access if needed.

January 18, 2024 at 12:36 pm #15199762

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

Please upgrade to the latest version of WPML 4.6.9 version after a full site backup{mandatory} and clear all types of caches. Then check whether the issue exists or not.

This may be a compatibility issue. We have to add the WPML language configuration for the Custom Elementor Modules. Then only it will appear for translations. Most of the Custom Modules will not add it. Please refer to this doc for more details - https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

--
Thanks!

Bigul

January 18, 2024 at 6:20 pm #15201805

brendaM-4

Hi Support Team,

Thank you for your response.

We have implemented the changes you requested. All plugins are in their latest version and that didn’t solve the problem.

We also went through the steps in the article you provided but cannot complete them because the custom fields shown in the article are not available to us.

Here's a screenshot of what the Custom Fields shows

image001.png
January 19, 2024 at 5:39 am #15202906

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the details. Please share the following details for tracking this.

1) URL of a couple of posts having the issue with translations

2) Please fill the private details fields after a full site backup{mandatory}. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

Also, allow me to install the following plugin for checking the post metadata details.

https://wordpress.org/plugins/jsm-show-post-meta/

--
Thanks!

Bigul

January 22, 2024 at 10:50 am #15210605

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the login information. Please check the attached image. Those contents are not showing for translation. So hope you are trying to register it for translation on this page - hidden link

Please share more details about the following. It would be great if you could share a couple of screenshots for a better understanding.

Here are some of the URLs that are having this issue.

--
Thanks!

Bigul

2024-01-22_16h17_07.png
January 23, 2024 at 8:01 pm #15218738

brendaM-4

Hi, yes that whole section doesn't show in spanish translation.
That is an elementor template inside another template, and if you go to the backend and try translating it manually, you will see it is actually translated, but once you see the front end is not displaying as it should.

Please let us know how to proceed, thank you for your help.

January 24, 2024 at 3:47 pm #15222827

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the details. Please check the following screencast. The *tab-page* template is not translated into Spanish yet.

hidden link

So please complete the translation of this template and make sure the bug exists or not - hidden link

--
Thanks!

Bigul

January 25, 2024 at 8:44 pm #15228117

brendaM-4

Hi,
I have completed the translation and it's still not showing up in the front-end.
Here you can see:
hidden link

That has also been the issue, I manually translate it and save it, but in the front-end does not display in spanish as it should.

January 26, 2024 at 8:39 am #15229046

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the feedback. Please try the following troubleshooting steps after a full site backup{mandatory} and make sure the issue exists or not.

1) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)

2) On the Troubleshooting page, please click on the following options in the *Clean up* section. Wait for confirmation of processing after each one.

- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables

--
Thanks!

Bigul

January 29, 2024 at 6:14 pm #15240217

brendaM-4

Hi, I have gone through each of the steps, one by one as requested, once again, it didn't work.
Thank you, please let me know what else can I try

January 30, 2024 at 3:06 am #15241360

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the feedback. Please take a full site backup (mandatory), and allow me to perform testing on your staging site with minimal setup(only the must required plugins active along with the default theme).

Also, please allow me to create a duplicator copy of your site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) in case of the detailed debugging of the issue is needed on our local servers.

--
Thanks!

Bigul

January 30, 2024 at 2:34 pm #15244420

brendaM-4

Hi, Backup done. Please go ahead and do whatever is needed, thank you!

January 31, 2024 at 7:32 am #15247509

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the permission. We will debug it further and get back to you soon. Please wait.

--
Thanks!

Bigul

February 1, 2024 at 11:34 am #15254579

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

This is happening because of compatibility issues with Jet Tabs. They are not providing the WPML language configuration for it like default Elementor Modules. I am getting the expected results on the staging site after the following steps.

1) Visit WPML>>Settings>>Custom XML Configuration
2) Add the following code in the *Custom XML Configuration* field

<wpml-config>
  <elementor-widgets>
    <widget name="jet-tabs">
      <fields-in-item items_of="tabs">
        <field>item_label</field>
        <field>item_editor_content</field>
        <field>item_template_id</field>
      </fields-in-item>
    </widget>
  </elementor-widgets>
</wpml-config>

3) Save the changes
4) Add the following code in functions.php of your child theme

function wpmlsupp_7499_allow_translating_numbers( $is_translatable, $job_translate ) {
    $data = $job_translate['field_data'];
 
    if ( 'base64' === $job_translate['field_format'] ) {
        $data = base64_decode( $data );
    }
 
    if ( is_numeric( $data ) ) {
        return true;
    }
 
    return $is_translatable;
}
add_filter( 'wpml_tm_job_field_is_translatable', 'wpmlsupp_7499_allow_translating_numbers', 10, 2 );

5) Save the changes
6) Then update the page from Elementor Editor after a minor modification to refresh the translation settings - hidden link
7) Update the translation from Classic Translation Editor

Please check the attached images and the following documentation for more details.

https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

https://wpml.org/forums/topic/elementor-templates-are-translated-but-in-translated-sites-not-displayed/#post-13023199

You have to complete the translation of the other tab templates like Mobile, General, etc... Then try steps 6 & 7 to get the full expected results.

hidden link

hidden link

--
Thanks!

Bigul

2024-02-01_16h59_31.png
2024-02-01_16h43_17.png
2024-02-01_16h41_10.png