Skip Navigation

[Resuelto] Layout´s cells do not keep translated content (using WPML)

This support ticket is created hace 5 años, 4 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Etiquetado: 

Este tema contiene 12 respuestas, tiene 2 mensajes.

Última actualización por Nigel hace 5 años, 4 meses.

Asistido por: Nigel.

Autor
Mensajes
#1296115

Using WPML I added new language "DACH" and then duplicate content of pages from "DE" - I followed steps of WPML tutorial. As original language of entire site is set Czech in WPML.
After duplicating content I use button Edit page sepparately. Everything works on pages without Layouts. On pages and other post types that use Layout´s cells, there apperas czech original content instead of "DE" content.

#1296267

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi there

Could I take a look at your site myself?

I can see an internal ticket reporting something similar, but I'm not sure if it's quite the same as the problem you are reporting.

I'd like to look at the backend of your site, and possibly to take a copy to share with the developers, depending on what I find.

I'll set up a private reply to get credentials from you. Please make sure you have a current backup.

#1297423

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Thanks for that, I'm checking your site now.

I want to check what your intention is here.

The example post you linked to, enlace oculto, it is a duplicate of the German post, meaning it cannot be edited independently of it. The other languages are independent translations of each other.

When I visit this post on the front-end I see the content is in German, which is expected because it is a duplicate of the German post.

Now, in your original question you wrote: After duplicating content I use button Edit page separately.

Is that what I should do now to test the problem? Is it okay for me to edit this same page independently?

#1297425

Yes, Nigel. Translate it independently/separately. The language of this page (except Meta Title and Meta Description) will change to Czech language.

#1297501

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Screenshot 2019-07-22 at 10.16.18.png

I did that, used the edit independently button, then saved the post, and made no other changes.

It now says that this is a translation of a Czech page (screenshot), and when I visit it on the front-end the content still appears to be in German.

My understanding from your question is that I should now be seeing this in Czech, but I don't, it's in German.

#1297571

This is strange.
And if you change content of original page (Czech), does the system show "update" icon in DACH version and is it still in German?

#1297613

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Screenshot 2019-07-22 at 12.51.09.png
Screenshot 2019-07-22 at 12.51.40.png

I edited the Czech original (I inserted another Visual Editor cell with some text) and the confirmed on the Translation Management page and on the individual post edit screen that a translation update was required, see the two screenshots.

So, for me, everything appears to be working as expected.

If you are seeing different to me, the first suggestion would be to clear your browser cache.

#1297667

That is the point. Now when you click update DACH language you get czech content instead of German in translation management.

#1297685

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Screenshot B.png
Screenshot A.png

OK, that's correct, I see that the translation for DACH is CZ -> DACH and not DE -> DACH.

But I see the same whether Layouts is involved or not, it appears to be how WPML works.

You'll see I created a post "Test Stránka", initially in CZ, translated it to DE, duplicated the DE to DACH, then edited the DACH post independently of the DE post, at which point it lists the DACH post as a translation of the CZ post (not the DE, see screenshot A).

When I make a change to the CZ original and see updates for the translations and add them in the Translation Manager, it shows the translations as CZ -> for each, e.g. CZ -> DE, CZ -> EN, CZ -> DACH.

Unless you can point out what I'm doing wrong, the treatment is the same whether Layouts is involved or not. Are you doing something different that I can reproduce?

#1297777

I disagree. Every duplicated post that does not use Layouts keeps translations. Please see for example page Konfigurationsempfehlung. Try to make it "independent" and you will see it keeps German content.

#1297815

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Sorry, but I just can't see where exactly this breaks down. Can you please give exact steps and screenshots of exactly where in the process it goes wrong?

Because I just created a new post using Layouts, "Another test stránka (CZ)".

I then translated this to "Another test stránka (DE)".

I then duplicated this German post to DACH, so the content is the same as the German post.

I then edit the DACH post and use the button to translate independently.

The content is now editable.

I edit it. According to your last update I'm expecting to see the content in CZ (i.e. broken), but it's in German, the same as the DE post it was duplicated from.

#1297917

Please see this video: enlace oculto. At the end of the video you can see there is Czech content instead of German content.

#1298265

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Screenshot 2019-07-23 at 07.53.54.png

OK, I see that, but at 2:05 in your video, *before* you use the button to translate the DACH duplicate independently, you can see that it is a duplicate of the CZ post and not a duplicate of the DE post, so of course the content will be the CZ content when you de-couple it.

The difference between my experience and yours seems to be that I create the duplicate from the post edit screen whereas you create the duplicate from the translation management screen.

On the translation management screen where you create the duplicate, there doesn't seem to be an option to specify which language version a duplicate should be created from, it appears to assume that the duplicate will be created from the default language. (Forgive me, I know WPML very well, but I'm not an expert.)

When I have been testing this, I edit the DE version of the post, and then create the DACH duplicate from that screen (see screenshot) so that the duplicate is a copy of the DE post and not of the CZ post as it is in your video.

Could you verify the same?