This thread is resolved. Here is a description of the problem and solution.
Problem:
I am trying to get uploaded videos to show a different video for each language. For images it works fine, but videos just will not work when added int a Divi moduele.
Solution:
You can translate the Video file URL using the advanced translation editor with the following steps:
1. Edit the page translation
2. Use the search field to find the original video URL
3. Translate it with the other video URL
Tell us what you are trying to do?
I am trying to get uploaded videos to show depending on selected language. For images it works fine, but videos just will not work.
Is there a similar example that we can see?
Check on hidden link
The video is added in English (default) and Swedish.
The
Hi again,
Thanks for your reply. My issues is however not with video by external URL - it is video uploaded to Media Library and then translated to other uploaded videos in Media translation.
I have created this clean sandbox setup on our servers here: hidden link (one-click login)
I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) and also install the Divi theme and try to recreate this issue.
Please don't install anything else like plugins that are not necessary, on a clean sandbox we try to use just the WPML plugins and the plugin/theme that's part of the issue
If the issue is going to take place on this clean setup on our servers too, then I can forward this to our compatibility department.
Please let me know how that goes and what you are able to find.
Sure, please provide me with temporary access to the staging site (WP-Admin and FTP) so I can investigate this issue further.
Your next answer will be private, which means only you and I have access to it.
❌ Please backup your database and website before providing us with access details ❌
✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.
✙ I would also need your permission to take a local copy of the site to escalate the issue to our 2nd tier supporters for further investigation if needed.
If you don't see the form below, please don't add your credentials as they will be publicly exposed: hidden link
I created a new page with the WordPress editor then translated it to Swedish and I can't replicate the issue there. Please check here: hidden link
I also checked the other ticket I shared before (https://wpml.org/forums/topic/video-is-not-translated/) and it's the same issue because the video was also uploaded to the Media library then translated with Media Translation.
It seems that the videos added in the Divi modules need to be translated with the WPML translation editor not "Media Translation", so please try this:
1. Edit the page translation
2. Use the search field to find the original video URL hidden link
3. Translate it with the other video URL
Nobody was working on the environment yesterday (admitting too at least). Now for some strange reason all default English pages are displayed in French and all translations gone.
Any idea and/or quick fix?
I'm glad to hear that the video translation issue was resolved.
Regarding the other issue with the translations, I'm not sure what could be causing this issue.
Since you already have a full backup of the database and website, you can try the following troubleshooting options in WPML > Support > Troubleshooting page:
- Clear the Cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML table collation
- Synchronize local job ids with ATE jobs
- Synchronize translators and translation managers with ATE
- Set language information
- Fix post type assignment for translations
If that didn't help, I suggest restoring the backup then keeping an eye on the staging environment and letting us know if the issue happens again so we can open a new ticket to investigate this further.