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.
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
The topic ‘[Closed] line break in translations’ is closed to new replies.