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
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 1 week, 3 days ago.

Assisted by: Prosenjit Barman.

Author Posts
October 28, 2024 at 8:31 am

konstantinA-3

Background of the issue:
I am trying to ensure that the translated WooCommerce product description text on my site, hidden link, maintains the same line breaks as the original text.

Symptoms:
The translated WooCommerce product description text is missing line breaks.

Questions:
How to fix it?

October 28, 2024 at 9:50 am
October 29, 2024 at 6:49 am #16340278

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
I hope you're doing well.

I reviewed the entire conversation you had with my colleague, Noman, and understand the issue. Since you provided access to your site, I logged in and noticed that the translation status of the specific product you mentioned was set to "in-progress."

Since you provided access to your site, I logged in to investigate further. As the issue you reported is similar to the one described in this Errata, To address it, I added the code snippet to preserve line breaks in your theme's `functions.php` file.

Next, I opened the default product (originally created in Lithuanian) and made a small change to the product title, which triggered a translation update (see screenshot: hidden link). When I accessed the English translation, I noticed that about 40% of it was incomplete. To speed up the translation process, I copied over the default content for the English translation and saved it.

After completing the translation, the product description formatting now matches the default language format, as shown in this screenshot: hidden link.

Please complete the translation in the other language and ensure the English translation is fully updated in the editor. Once completed, the translated product should display the correct formatting.

Let me know the update. If you need further assistance in this matter, feel free to reach out! I'll be happy to help!

Best regards,
Prosenjit