Hi Christian,
Thank you very much for the reply!
You write I should translate using the flags/within cornerstone: this is just one mechanism, not two, right? (just clicking the language switcher within cornerstone)?
As said previously we would really like to use the WPML Advanced Translation Editor as this allows for automatic translation using DeepL.
I do understand that you are opposing this, but to my best knowledge, this worked fine using X before upgrading to Pro. And yes - also with V2 elements…
Then I upgraded to Pro and now it doesn’t work anymore.
That is - the translation works, but the cornerstone stuff is missing from the page so it will not be shown. Also the translated page is not seen by Wordpress as a Cornerstone page.
If you’re right and I’m wrong
then can’t you fix it in the next update?
You say it worked using V1 elements… was this without the _cornerstone_data etc (database entries in wp_post_meta)?
If yes - then it should be possible to make it work using V2 also I guess?
The interesting part is, that looking in MySQL the original language page and the translated page (using WPML Advanced Translation Editor) looks the same (except for the translated content):
[cs_content][cs_element_section _id="1" ][cs_element_layout_row _id="2" ][cs_element_layout_column _id="3" ][x_gap size="400px"][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][cs_element_section _id="5" ][cs_element_layout_row _id="6" ][cs_element_layout_column _id="7" ][cs_element_global_block _id="8" ][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][cs_element_section _id="9" ][cs_element_layout_row _id="10" ][cs_element_layout_column _id="11" ][cs_text _bp_base="3_4"]
<h1 style="text-align: center;">Ztove - sæt</h1>
Kom godt igang med den fulde Ztove oplevelse. Vi har sammensat forskellige kombinationer af kogeplader og medfølgende kogegrej. Så skal du blot downloade appen og gå igang med perfekt madlavning. Hver gang.
[/cs_text][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][cs_element_section _id="13" ][cs_element_layout_row _id="14" ][cs_element_layout_column _id="15" ][cs_text _bp_base="3_4"][products category="sæt" limit="6" paginate="true" orderby="best"][/cs_text][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][cs_element_section _id="17" ][cs_element_layout_row _id="18" ][cs_element_layout_column _id="19" ][cs_element_global_block _id="20" ][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][/cs_content]
This is the translated page “post_content” from MySQL:
[cs_content][cs_element_section _id="1" ][cs_element_layout_row _id="2" ][cs_element_layout_column _id="3" ][x_gap size="400px"][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][cs_element_section _id="5" ][cs_element_layout_row _id="6" ][cs_element_layout_column _id="7" ][cs_element_global_block _id="8" ][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][cs_element_section _id="9" ][cs_element_layout_row _id="10" ][cs_element_layout_column _id="11" ][cs_text _bp_base="3_4"]
<h1 style="text-align: center;">Ztove - set</h1>
Ga aan de slag met de volledige Ztove-ervaring. We hebben verschillende combinaties van kookplaten samengesteld en kookgerei meegeleverd. Download dan gewoon de app en ga aan de slag met perfect cooking. Elke keer.
[/cs_text][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][cs_element_section _id="13" ][cs_element_layout_row _id="14" ][cs_element_layout_column _id="15" ][cs_text _bp_base="3_4"][products category="sæt" limit="6" paginate="true" orderby="best"][/cs_text][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][cs_element_section _id="17" ][cs_element_layout_row _id="18" ][cs_element_layout_column _id="19" ][cs_element_global_block _id="20" ][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][/cs_content]
This works alright (I don’t know if the above is V1 or V2 elements - but they don’t look wrong/different in the translated page!).
So only thing that seems to be missing is that the translated page should also be filtered through the Cornerstone filter to produce the right output when the page is viewed?
If yes - can this be done by copying the wp_post_meta cs_data from the original page to the translated?
And how did this work using the “old” cornerstone V1 elements - was this copying taken care of automatically?
I still believe it did work in X before I upgraded to Pro…
Thank you very much for your help in solving this, and sorry if I’m stubborn, but this is really important to us!
Best regards,
Peter