[Resolved] Can't translate video source (WPML / Stackable Gutenberg blocks)
This thread is resolved. Here is a description of the problem and solution.
Problem:
Can't translate video source (WPML / Stackable Gutenberg blocks)
Solution:
Please the following code to WPML-> Settings-> Custom XML Tab
<wpml-config>
<gutenberg-blocks>
<gutenberg-block type="stackable/video-popup" translate="1">
<key name="videoLink"></key>
<xpath type="link">//div/@data-video</xpath>
</gutenberg-block>
</gutenberg-blocks>
</wpml-config>
After that, update the page in the default language and its translation.
<strong>Relevant Documentation:</strong>
https://wpml.org/documentation/support/language-configuration-files/
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
I use only the "popup video" block from this plugin.
When I put the block on a page, I can choose a video to display (when the play button is clicked).
But I want it to show another video (change the src value of the video tag only) when I'm on a translated page.
When I use this snippet in my WPML config, I see the video source field in the translation editor and can translate it fine. But this doesn't seem to impact the front-end: on both pages (the original and the translated one) the same video source is used.
2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me a lot of information about how your site is configured.