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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.