[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.
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.
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?
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.
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?
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.
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.
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.