Skip Navigation

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

Relevant Documentation:
https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/

100% of people find this useful.

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.

This topic contains 11 replies, has 2 voices.

Last updated by rikardT-2 1 year, 8 months ago.

Assisted by: Mohamed Sayed.

Author Posts
May 8, 2023 at 7:33 am #13602441

rikardT-2

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

What is the link to your site?
hidden link

2023-05-08_09-30-18.png
May 8, 2023 at 11:04 am #13604695

Mohamed Sayed

Hi Rikard,
Thanks for contacting WPML support, I will be glad to help you.

Please try the solution provided in the following thread (In the top yellow box) to register the Divi video module for translation: https://wpml.org/forums/topic/video-is-not-translated/

Let me know please if that helps.

Regards,
Mohamed

May 8, 2023 at 11:07 am #13604703

rikardT-2

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.

Please clarify.

Thx,
Rikard

May 8, 2023 at 2:37 pm #13606667

Mohamed Sayed

Hi,

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.

Regards,
Mohamed

May 8, 2023 at 3:02 pm #13606989

rikardT-2

Hi again,

Would it be possible for you to troubleshoot our Staging instead? I have someone to install Divi etc on my site and do not know myself how to...

Thanks,
Rikard

May 8, 2023 at 4:06 pm #13607405

Mohamed Sayed

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

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thanks for your cooperation

May 9, 2023 at 11:28 am #13612953

Mohamed Sayed

Hi Rikard,

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

Let me know please if that helps.

Regards,
Mohamed

May 9, 2023 at 12:54 pm #13613993

rikardT-2

Thanks for replicating. That explains it...
Will the URL automatically shift from staging8 to production URL when deploying to production?

Will test your workaround later today alt in tomorrow morning.

BR,
Rikard

May 9, 2023 at 1:10 pm #13614047

Mohamed Sayed

Hi,

Take your time, I will be waiting for your feedback.

About the URLs, it should be replaced with the production URLs but this is handled by the migration method you use, not WPML.

May 10, 2023 at 12:14 pm #13622305

rikardT-2

Hi Mohamed.
Your trick works - thanks for that.

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?

Else I have a backup to restore...

Thanks,
Rikard

May 10, 2023 at 6:49 pm #13626173

Mohamed Sayed

Hi Rikard,

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.

Regards,
Mohamed

May 13, 2023 at 8:29 am #13640027

rikardT-2

Too bad that DiVi / WPML does not support the Media Translation... The provided workaround worked fie though.

My issue is resolved now. Thank you!