Navigation überspringen

Dieses Thema ist gelöst. Hier finden Sie eine Beschreibung des Problems und der Lösung.

Problem:
You are experiencing issues with the ATE where translated paragraphs from German to English are randomly split into multiple paragraphs, disrupting the page formatting on the English version of your website.
Solution:
We have updated the ATE settings to ignore line breaks that were being converted into

<br>

tags, causing the formatting issue. Please follow these steps to resolve the issue:
1. Open the default page in the WordPress Editor and make a small change in the title.
2. Update the page and then proceed to update the translation.
3. In the translation editor, make some changes in the translated paragraph, ensuring that the sentences are not on separate lines, and then save the translation.
Please try these steps and let us know how it goes. If the problem persists or if this solution becomes irrelevant due to updates or it does not apply to your case, we 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 needed, please open a new support ticket at WPML support forum for further assistance.

Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.

Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.

Schlagwörter: 

Dieses Thema enthält 5 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Prosenjit Barman Vor 3 Monaten, 2 Wochen.

Assistiert von: Prosenjit Barman.

Verfasser Beiträge
August 26, 2024 unter 11:46 am #16104196

christianM-69

Hintergrund des Themas:
I am trying to translate all subpages from German to English which worked well so far. Unfortunately, the ATE seems to split up what was one paragraph in the original language into multiple paragraphs randomly.

This destroys the page formatting throughout the whole english website version. Link to a page where the issue can be seen: versteckter Link

Die Symptome:
The translated English paragraph is split up into multiple line breaks, even though they are shown as one in the ATE. This issue applies to almost every subpage and occurs randomly.

Fragen:
Why is the ATE splitting up paragraphs randomly in the translated page?
How can I ensure the translation maintains the same formatting as the original textblock?

August 27, 2024 unter 7:15 am #16107689

Prosenjit Barman
Supporter

Sprachen: Englisch (English )

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

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're experiencing. This typically occurs when paragraphs are translated in smaller segments. In our updated Translation Editor, we've introduced an option to enable translation in larger segments, which helps maintain the original formatting of the paragraph in the translation.

Could you please enable that option and then try translating the page again? To enable that option -

- Open the translation editor and click on the 'Gear' icon in the top right corner.
- Enable "I prefer bigger segments" as shown on this screenshot: versteckter Link
- Exit from the Editor.
- Open the default page in the WordPress editor and Make a small change in the Page title.
- Update the changes and then proceed to update the translation.

The paragraph will hopefully now appear in a single segment in the translation editor, and once you translate the entire segment, the translated paragraph should have the same formatting as the original.

Let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

August 27, 2024 unter 2:18 pm #16110535

christianM-69

Dear Prosenjit,

Thank you very much for your detailed help on this!

I followed your steps as proposed and activated the "I prefer bigger segments" option, as well as having refreshed the original content and refreshing the translation.

Unfortunately, the result is the same.

Any other ideas on how to solve this? 🙂

Best regards,

Chris

August 28, 2024 unter 7:24 am #16112882

Prosenjit Barman
Supporter

Sprachen: Englisch (English )

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

Hello Chris,
Thank you for the update.

I'm sorry to hear that enabling the Bigger Segment option didn't resolve the issue. To determine whether the problem is specific to the new ATE or also occurs in the previous ATE, could you please switch to the previous ATE and check if you experience any issues there?

– Go to the top right corner of the translation editor
– Click the gear icon
– Enable the option “Use the previous version of the Advanced Translation Editor.”
– Refresh the page.
- Check if the paragraph is appearing in the editor. If it’s split into multiple segments, join them by clicking the link icon (screenshot: versteckter Link) and then add the translation without any line breaks.

Please let me know how it goes. I will be happy to help if you need further assistance.

Best regards,
Prosenjit

August 28, 2024 unter 12:51 pm #16115222

christianM-69

Dear Prosenjit,

Thanks a lot for following up.

I tried to use the previous version of ATE (it was already switched on due to another bug with translating the "&" symbol) but still the issue persists. Also switching to the new version doesn't seem to make a difference.

The segments are already linked. Also in the code everything seems clean, so no special formatting e.g. which could explain this behaviour. Many paragraphs work as desired, other paragraphs are split up for no reason.

If you have further ideas on how to tackle this, I'm happy to hear them. 🙂

Thanks and best regards,

Chris

August 29, 2024 unter 8:52 am #16118604

Prosenjit Barman
Supporter

Sprachen: Englisch (English )

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

Hello Chris,
Thank you for patiently trying out each solution.

I reviewed our system and found that the page was automatically translated into English. Upon inspecting the translation file delivered to your site, I noticed that the file contains line breaks, which WPML is converting into `<br>` tags. This is causing the sentences to appear on separate lines.

I've updated the ATE settings to ignore the breaks on your site. Could you please follow these steps to see if this resolves the issue?

1. Open the default page in the WordPress Editor and make a small change in the title.
2. Update the page and then proceed to update the translation.
3. In the translation editor, make some changes in the translated paragraph, ensuring that the sentences are not on separate lines, and then save the translation.

Please give it a try and let me know how it goes. I will be happy to take a closer look if you need further assistance in this matter.

Best regards,
Prosenjit

September 2, 2024 unter 8:09 am #16130360

christianM-69

Dear Prosenjit,

Thanks a lot for your persistence on this! This really seemed to work - the breaks now disappeared! 🙂

Best regards and have a nice week,

Chris