Skip Navigation

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

Problem:
The client is experiencing an issue where translations start a new line for each sentence on their website. This problem seems to be related to the theme being used.
Solution:
We recommend the following steps to address the issue:
1) Switch to the Hello Elementor theme.
2) Update the page in the original language to refresh the translation settings.
3) Update the translation using the WPML Advanced Translation Editor.
Additionally, consider increasing the WP Memory Limit to 256 MB as per the minimum requirements for WPML, which can help with processing and performance issues. For more details on increasing memory limits, please visit WPML minimum requirements and Increasing memory allocated to PHP.

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. If further assistance is needed, please open a new support ticket at WPML support forum.

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 6 replies, has 2 voices.

Last updated by Bigul 3 months, 2 weeks ago.

Assisted by: Bigul.

Author Posts
July 31, 2024 at 1:08 pm

jonasV-23

Background of the issue:
I am trying to fix a bug where translations start a new line for each sentence. The issue can be seen on this page: hidden link

Symptoms:
Translations start a new line for each sentence.

Questions:
Why do translations start a new line for each sentence?
How can I fix this bug?

July 31, 2024 at 1:49 pm
August 1, 2024 at 12:26 pm #16029429

Bigul
Supporter

Languages: English (English )

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

Hello,

I made a copy of the site using the Duplicator plugin and testing it locally now. We will get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

August 2, 2024 at 3:21 pm #16034111

Bigul
Supporter

Languages: English (English )

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

Hello,

I had a few rounds of testing in my local copy. The line break in between paragraphs does not happen after the following steps. Please check the attached images for more details.

1) Switch to Hello Elementor theme
2) Update the Page - hidden link in the original language to refresh the translation settings
3) Update the translation from the WPML Advanced Translation Editor

So it looks like a compatibility issue with your customized theme. Have you made any changes to your theme recently?

But there is an issue in the Paragraphs. Somehow the Advanced Translation Editor is considering the texts like the following as a single paragraph. Have you noticed this issue in the past?

Although Wise is one of the world's fastest and most secure digital payment service providers, navigating its features, like buying Bitcoin, can be tricky. Formerly known as Transferwise, the platform allows you to buy BTC and other cryptocurrencies from any vendor using a P2P exchange mechanism. So, if you're interested in trading your crypto for cash in a flash or vice versa, Transferwise should be among your top choices.

However, like several other digital payment service providers, the company has unique features and trading policies, making it slightly tedious to use, especially for beginners. Remember that in crypto trading, any error made during a transaction can cause you to lose all assets involved! So, if you want to purchase cryptocurrencies seamlessly on Wise, this article is your perfect guide.

--
Thanks!

Bigul

2024-08-02_20h36_34.png
2024-08-02_20h20_51.png
August 5, 2024 at 12:34 am #16037198

jonasV-23

Hello,

1. I've switched to the Hello Elementor theme.

2. Update the Page - hidden link in the original language to refresh the translation settings -- I didn't get your point here, what should I update here, However when I edit the post I see this message.

3. And Change this to, is this what you've mentioned

But doing all this I can't see any change. It's still not retained the line space

wpml lang change.png
wpml before.png
wpml2.png
wpml.png
August 5, 2024 at 5:09 pm #16041280

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the updates. On my local copy after switching to the Hello Elementor theme, I made minor changes to the paragraphs of this page having the issue - hidden link. Then update the translation from WPML Advanced Translation Editor.

I will consult our team about this for an expert opinion and get back to you soon. Please wait.

--
Thanks!

Bigul

August 8, 2024 at 6:21 am #16050609

Bigul
Supporter

Languages: English (English )

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

Hello,

The issue exists after the initial troubleshooting steps and possible workarounds. So the ticket is escalated to our second-tier team for the further debugging. We will get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

August 14, 2024 at 10:52 am #16069862

Bigul
Supporter

Languages: English (English )

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

Hello,

Please check the attached images. We are not able to reproduce the issue on your site now. Have you made any changes recently?

We had multiple tests but were not able to reproduce the issue exactly here with the default or Hello Elementor theme. So one request. Increase *WP Memory Limit* to *256* MB(the minimum required memory limit for WPML is *128*). Please check the following links for more details.

https://wpml.org/home/minimum-requirements/

https://developer.wordpress.org/apis/wp-config-php/#increasing-memory-allocated-to-php

--
Thanks!

Bigul

2024-08-14_16h07_11.png
memory.jpg
2024-08-14_15h46_38.png
2024-08-14_15h46_19.png