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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Bruno Kos 1 day, 1 hour ago.

Assisted by: Bruno Kos.

Author Posts
January 7, 2025 at 9:29 am #16568664

davidB-89

Hintergrund des Themas:
I am trying to use a code block in the Enfold theme with the following XML code: [the code is not working here. Please check it on the website] in the code element. The code language is set to XML. In the main language, everything is fine, but in the translation, everything is stripped out. Here are the URLs where the issue can be seen: hidden link and hidden link.

Die Symptome:
In the translation, the XML code is stripped out, whereas it appears correctly in the main language.

Fragen:
Why is the XML code stripped out in the translation?
How can I ensure the code block appears correctly in both languages?

January 7, 2025 at 10:46 am #16569013

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

I created a sandbox here:
hidden link

Can you reproduce this issue there on a simple page?

January 7, 2025 at 11:34 am #16569251

davidB-89

Did you already created the sandbox site?

All the best,
Patrick

January 7, 2025 at 1:53 pm #16569815

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Yes, have you missed my previous message perhaps? The sandbox is here:
hidden link

January 8, 2025 at 5:52 am #16572047

davidB-89

Hi Bruno,

Here's the link to the post that's working: hidden link

The code tags in the translation already get stripped out when I press the save button.

January 8, 2025 at 1:09 pm #16573546

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

This has been escalated to our Compatibility team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.

January 14, 2025 at 6:29 am #16591245

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Can you please try the following:

1. Add the following XML configuration to set the translation options for third-party themes and plugins as per the guide at:
http://wpml.org/documentation/support/language-configuration-files/#setting-translation-options-for-third-party-themes-and-plugins

   <wpml-config>
     <shortcodes>
       <shortcode>
         <tag>av_codeblock</tag>
       </shortcode>
     </shortcodes>
   </wpml-config>

2. Access the WPML Advanced Translation Editor (ATE) and disable the "I prefer bigger segments" option. To do this:
- Click on the settings icon in the top-right corner of the ATE.
- Disable the **I prefer bigger segments** option.

3. Refresh the translation job as described in the guide at:
http://wpml.org/documentation/translating-your-contents/#assigning-the-translations-to-a-translator

4. Re-translate the page following the same process.

Let me know if this helped!

January 17, 2025 at 5:54 am #16604393

davidB-89

Hi,

We are not using the ATE but the default wordpress editor for the translation. So what do we have to do?

January 20, 2025 at 1:25 pm #16613615

davidB-89

Why is this marked as solved? It's not solved?

January 21, 2025 at 8:12 am #16616697

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

It was marked as a resolved by a customer ( according to our system), perhaps it was done mistakenly?

In any case we are still investigating this because the issue does not happen for us in localhost environment, but it happens in our sandbox environment.

I will keep this thread updated!