Ir al contenido Ir a la barra lateral

Este hilo está resuelto. Aquí tienes una descripción del problema y la solución.

Problem:
If you're experiencing an issue where updating a page in the default language (Spanish) causes the loss of a translation in another language (French), with the French page displaying Spanish content, this could be due to a problem with WPML.

Solution:
First, ensure that the French translation is 100% complete and clear any caches. If the problem persists, it may be related to mixing translation methods. Avoid using both the WPML Translation Editor and manual edits in the WordPress editor for translations, as this can lead to inconsistencies and loss of translations. If you have manually edited translations after using the WPML Translation Editor, these changes will be lost upon updating with the WPML Translation Editor again.

To resolve this, follow these steps:
1. Find the French page that is being replaced with Spanish content upon updating the Spanish page.
2. Remove this French page from the Pages section and also from the Trash.
3. Fully translate the Spanish page into French using the WPML Translation Editor.
4. Check if the issue persists on the French version of the site.

For more information on why translations might not be showing, please see our guide: https://wpml.org/faq/why-arent-my-translations-showing/.

If the solution provided here is not relevant to your case, either because it's outdated or not applicable, 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 you still need assistance, please open a new support ticket in our forum: https://wpml.org/forums/forum/english-support/.

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.

Etiquetado: 

Este tema contiene 7 respuestas, tiene 2 voces.

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

Asistido por: Prosenjit Barman.

Autor Publicaciones
febrero 21, 2024 a las 12:35 pm #15327810

javierM-8

Hello,

I have a wordpress page in 4 languages: ES, FR, EN and PT. Sometimes, when I update a page in ES (default language), I lost the FR translation completely. I mean, the FR page change to ES and I need to re-translate it. I am wondering if this could be a problem with wpml.

febrero 22, 2024 a las 8:55 am #15331926

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having. Often, the content on the translated page will revert to the default content if both the translated and default pages are configured to sync. This syncing happens when you generate the translation by copying content from the default language.

If you're manually translating by duplicating the content from the default page, make sure that the translation on the translated page is done independently. To understand the procedure, please check the instructions outlined in the guide below.

- https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/#:~:text=Translate%20independently

If the issue persists even after that, please do the following:

- Please go to WPML > Support > Troubleshooting
- Click on the buttons marked in this screenshot:enlace oculto
- Once done, make a small update on the default page and then update the translation.

Let me know if the steps above help or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

febrero 22, 2024 a las 12:12 pm #15333388

javierM-8

Hello,

We don't have the "Translate independently" option in the Language box. Find attached what we have in the language box when editing a FR page that had the problem I described before. We have "Sobreescribir con el contenido en ES" (Overwrite with content in ES) that, as far as I understand, means that the FR content is not synced with ES.

FR-page.png
febrero 22, 2024 a las 12:14 pm #15333422

javierM-8

Sorry, wrong image. Now the correct one.

fr-oage-2.png
febrero 23, 2024 a las 5:28 am #15336025

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.

From the screenshot, I can see that the translation has been added using the WPML Translation editor and also the translated page is not synchronized with the default page.

To understand the root cause of the issue a closer inspection will be required.

I would like to request temporary access (wp-admin and FTP) to your site 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

febrero 26, 2024 a las 5:54 am #15342205

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hello There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Thank you for sharing the access information. When I opened the specific page you shared and examined the French translation, I noticed the French translation was incomplete, with various sections remaining untranslated. To address this, I added the translation(using Google Translate, given that French is not my first language, and for certain parts, I added the English content to expedite the process) ensuring the translation is 100% completed.

After saving the French translation, I checked the front and verified that the French contents were showing there(Full page screenshot: enlace oculto)

Following your instructions, I made updates to the Spanish page, specifically adding two dots to the title. However, I did not make any changes to the French translation, leaving it as is. When I checked the French page, the French contents are still showing there. I haven't noticed any Spanish content on the French page. Please check this video(enlace oculto) for a better understanding.

Given that the French version seems to be functioning correctly, the problem you encountered may have happened from an incomplete French translation or caching issues. Could you please ensure that the French translation is 100% completed, clear the caches, and then check again?

However, If there are any specific approaches to see the issue, kindly share them in the next response. I will check accordingly and assist you further in this matter.

Best regards,
Prosenjit

febrero 26, 2024 a las 8:24 am #15342650

javierM-8

Hello,

The problem is that the issue doesn't appear every time we save the an ES page. We don't know yet what the conditions are to get the error.

About the incomplete FR translation, the thing is that it was full completed in the FR frontend despite what you saw in the backend. For example, here enlace oculto you'll see some ES strings not translated that acctually are translated in the FR frontend. For example, the ES string "Butaca de espera MIZAR" is translated to "MIZAR" in FR.

My teammates have just confirmed that we get the issue when updating ES content but FR content too.

Regards.

febrero 27, 2024 a las 4:04 am #15347092

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hello There,
Thank you for the update.

I have checked in the Database and found that the Translation "MIZAR" has been added manually from WordPress Editor, by editing the French translation. Please check this screenshot: enlace oculto

If you initially used the WPML Translation Editor to translate a page and subsequently made manual edits to the translation through the standard WordPress editor, be aware that any manual changes will be lost when you update the translation again with the WPML Translation Editor. Mixing translation methods like this is not advised due to potential inconsistencies in translation. For a deeper understanding of the issues that can arise from using a mixed-translation method, please check the guide below.

- https://wpml.org/faq/why-arent-my-translations-showing/

Therefore, please always stick to one translation method only. If you've added translation using WPML Translation Editor, please don't make any updates to the translation by manually editing the translated page.

The problem you're experiencing might be connected to this situation. For the French pages that are being replaced by Spanish content, ensure that if the French translations were initially applied through the WPML Translation Editor, all subsequent edits to the translation should also be done exclusively within the WPML Translation Editor. Please avoid making any manual modifications to the translations outside of the WPML Translation Editor.

For the moment, please find the French page that is being replaced with Spanish content upon updating the Spanish page. Remove this French page from the Pages section and also from the Trash. Next, fully translate the Spanish page into French using the WPML Translation Editor and check if the issue still happens in the French version of the site.

Let me know the update. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

febrero 27, 2024 a las 8:55 am #15347769

javierM-8

It's difficult to check now what you are proposing because I don't have the time to translate several pages from Spanish into French, but what you are saying makes perfect sense. Thank you very much for your help.