Saltar al contenido Saltar a la barra lateral

Este es el foro de soporte técnico de WPML, el plugin multilingüe de WordPress.

Todas las personas pueden leerlo pero solo los clientes de WPML pueden ingresar comentarios. El equipo de WPML responde en los foros 6 días a la semana, 22 horas por día.

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 -

Zona horaria del soporte: Asia/Dhaka (GMT+06:00)

Este tema contiene 10 respuestas, tiene 2 voices.

Última actualización por Prosenjit Barman hace 1 año, 7 meses.

Asistido por: Prosenjit Barman.

Autor Publicaciones
Abril 1, 2024 a las 7:43 am #15468324

heikkiK-3

Estoy tratando de:
escribir una traduccion a ingles con parrafos (enter)

URL de (mi) sitio web donde aparece el problema:
enlace oculto

Yo esperaba ver:
Párrafos

En vez de eso, obtuve:
un texto sin párrafos

Captura desde 2024-04-01 10-37-42.png
Captura desde 2024-04-01 10-37-34.png
Abril 1, 2024 a las 11:25 am #15468965

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

Zona horaria: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML Support.

To reduce the waiting time, I took this ticket and responded in English. Please let me know if you're okay with it or want to continue the conversation in Spanish language. I will check and forward this ticket to one of our Spanish-speaking support to assist you further in Spanish language.

I understand the issue you're having. If you're trying to insert a space between paragraphs by pressing the "ENTER" button, it's normal not to see these spaces reflected on the frontend. This is because simply pressing "ENTER" doesn't register as a paragraph break.

Instead, given that you're utilizing the Classic Translation Editor for translations, switch to the "Text" mode and insert a break tag (`<br>`) at the desired locations to introduce spaces between paragraphs. You can refer to this example in the screenshot here: enlace oculto.

I hope it will help. Please feel free to let me know if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

Abril 2, 2024 a las 11:08 am #15472307

heikkiK-3

Hello.

I have always pressed enter to have a new paragraph, and it works like that on other sites.
I am not editing on the "text" tab, i am editing on the "visual" tab and i didn't even edit the newlines, i just corrected one word, and the paragraph structure got broken.

I have never needed to put a <br> there.

In the example i gave, i just pushed 2 times enter because i wanted to make the space bigger, but that's not the problem. Even if i go to the visual tab and add a normal paragraph brake (enter), all the text will be in one paragraph.

It works for some reason on other sites. I didn't do any significant change on the site that would affect this.

Screenshots as a proof.
Even the other paragraphs on the same page work well.

Captura desde 2024-04-02 14-07-25.png
Captura desde 2024-04-02 14-07-12.png
Captura desde 2024-04-02 14-07-03.png
Captura desde 2024-04-02 14-06-23.png
Abril 2, 2024 a las 11:14 am #15472407

heikkiK-3

...continuing to the last message.
I tried putting the </br> as you told me. But it only makes a normal newline, not a paragraph change.
I bet there is some kind of a bug there.

Captura desde 2024-04-02 14-16-17.png
Captura desde 2024-04-02 14-16-05.png
Abril 3, 2024 a las 3:32 am #15475797

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

Zona horaria: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

Indeed, pressing enter after a paragraph does result in the next paragraph appearing on a new line in the frontend, which can also be achieved by entering the Break tag(</br>). However, following your directions, I removed a word from the paragraph and updated the translation accordingly. I can verify that the paragraphs continue to display correctly with the intended breaks. I haven't observed the issue you mentioned.

Based on your indication that there might be a bug, I'd be grateful if you could outline the specific steps to reproduce the issue. If you can detail the exact process you used, I'll be able to replicate it in my development environment and proceed with the necessary actions. If required, I will escalate it to the 2nd tier team for further investigation. Additionally, a video about the problem or demonstrates how to replicate it would be extremely helpful in this case.

Looking forward to your response and we are always here to help.

Best regards,
Prosenjit

Abril 3, 2024 a las 7:40 am #15476592

heikkiK-3

ok, i repeat:

1: i did change one typo on the box
2: saved
3: Boom, the site was broken

There is nothing else I did to accomplish the buggy page. It was ok before.

Even if i remove the text from the box and on the text tab i write:
"test

paragraph"

it will display as:
"test paragraph"

Even if i check from the visual tab that it should display as different paragraphs.

Abril 4, 2024 a las 3:22 am #15480858

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

Zona horaria: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for sharing the steps.

It seems a closer inspection will be required to understand the root cause of the issue.

I would like to request temporary access (wp-admin and FTP) to your site along with the link to the page/post where the issue occured to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
enlace oculto

Looking forward to your response.

Best Regards,
Prosenjit

Abril 4, 2024 a las 11:41 am #15482725

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

Zona horaria: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for sharing the access information.

From the Classic Translation Editor, I switched to the HTML view for the default content and noticed that Paragraph and Break Tags are present for the default content. However, these tags are being stripped out in the translation. Refer to this screenshot for clarity: enlace oculto.

This stripping of tags is why the text appears as a single block without any paragraph breaks on the front end.

From the nature of the issue, it appears to be similar to a previous one we've dealt with. For more details, please refer to this Errata page: https://wpml.org/errata/visual-text-toggle-removes-paragraph-tags-on-translations-and-shows-on-one-line/.

As outlined in the Errata, we highly recommend switching to the Advanced Translation Editor for translating your content, as it maintains the original formatting. However, if you prefer to continue using the Classic Translation Editor, you should add the code specified in the Errata to your theme's functions.php file.

Following this, make a minor edit to the default page, save your changes, and then update the translation. Within the translation editor, you can manually insert line breaks in the translated paragraphs as needed by pressing the "Enter" key. After doing this, save the changed and check the front end. The line breaks should be displayed correctly.

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

Best regards,
Prosenjit

Abril 4, 2024 a las 6:26 pm #15485273

heikkiK-3

Well, this kind of works.
I remember this case before on another site. I just didn't know it is the same bug.

I still hope this bug would be resolved some day.

I would rather not switch to the advanced translator instead of the classic one.

So, this code makes all the text boxes without formatting (without paragraph breaks)
of course i can then add them, but it is a lot of work to add every single paragraph break when i need to edit something.

Let's assume i have a site of 20 articles and i need to change 25% of them, they all have 20 subtitles (20 different text edit boxes) and all of them have 5 paragraphs, it makes already 500 paragraph breraks i need to re-add. Sounds like a lot of work.

Abril 4, 2024 a las 6:39 pm #15485320

heikkiK-3

Ok, i tried switching to the advanced translation editor. It shows everything untranslated there, even if i have translated them before... why?

For now i will leave the part of the page without paragraph breaks, waiting for a fix for that bug.

Abril 5, 2024 a las 6:47 am #15486426

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

Zona horaria: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

I apologize for any issues the code may have caused. The problem mentioned in the Errata has been resolved in WPML version 4.5.9 and since you're using an updated version, that specific problem should not arise. Despite this, since the issue persists, I thought it would be helpful to check if the previously suggested workaround is still effective.

However, while checking the development tickets, there's an unresolved issue related to the Classic translation editor, which might be relevant to your situation.

Please check this Errata for more information: https://wpml.org/errata/classic-translation-editor-removes-line-breaks/

You can also use that workaround till we release an update with the fix for this issue.

Regarding the issue of viewing translations within the Advanced Translation Editor - When translations are made using the Classic Translation Editor, they won't appear in the Advanced Translation Editor. This is because WPML's Translation Memory isn't shared between the two editors. Therefore, if you switch editors, you won't see previously added translations in the new editor. You will need to add the translation again using the Advanced translation editor. I hope you can understand.

Please feel free to let me know if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

El tema '[Cerrado] dividir la traduccion a párrafos no funciona.' está cerrado a nuevas respuestas.