Skip Navigation

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

Problem:
If you're experiencing issues translating product information with nested HTML tags in WPML, and find that your translations are not saving, it might be due to incorrect HTML formatting in the editor.
Solution:
First, ensure that all nested tags in your original content are correctly opened and closed. Here's how you can check and correct the formatting:

<code><br /><img src="path/to/image.jpg" alt="Descriptive text for the image"><br /></code>

After correcting the original content, apply the same formatting to the translation:
1. Select the text and click the Marker icon to format it (screenshot: https://prnt.sc/Verip2kUFWOl).
2. If the translation still doesn't save, delete the translation for that specific segment.
3. Copy the original content into the translation to ensure all tags are accurately copied.
4. Translate the text within the tags, ensuring not to edit or remove the tags themselves.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, you can open a new support ticket for further assistance at https://wpml.org/forums/forum/english-support/.

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 1 reply, has 2 voices.

Last updated by Prosenjit Barman 2 weeks, 3 days ago.

Assisted by: Prosenjit Barman.

Author Posts
November 6, 2024 at 5:17 pm #16374181

simeonN-2

Background of the issue:
I am trying to translate product information on my site using WPML. I encountered issues with nested tags while attempting to save translations. I tried using the WordPress translation feature, but it doesn't work.

Symptoms:
There are nested tags in the product information, and it won't let me save the translations.

Questions:
How can I translate product information with nested tags using WPML?
Why won't the WordPress translation feature work for my product translations?

November 7, 2024 at 7:37 am #16375359

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There!
Thanks for contacting WPML Support.

I understand the issue you're experiencing. It appears that your HTML tags are nested, but due to incorrect HTML formatting in the editor, the content isn’t saving properly.

Please edit your original content and ensure that all nested tags are correctly opened and closed, then save the page again. In your case, I see you’re using both Code and Image tags. The correct format should look like this:

code
<img src="path/to/image.jpg" alt="Descriptive text for the image">
code

[Make sure to define the code tag correctly]

Once you've verified that the original content is correctly formatted, follow these steps to update the translation:

- Apply the same formatting to the text by selecting it and clicking the Marker icon at the bottom (see screenshot: hidden link).
- If you're still unable to save the translation, delete the translation for that specific segment.
- Click the icon to copy the original content into the translation. This ensures all tags are copied accurately.
- Translate the text within the tags, taking care not to edit or remove the tags themselves.

Please try and let me know how it goes. I'll be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

November 8, 2024 at 5:23 pm #16383137

simeonN-2

Thank you very much!!