[Resolved] Media translation not working on Elementor image widget
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is trying to use media translation to translate an image on an Elementor page, but the original image still appears on the translated page despite configuring WPML settings for media translation and scanning and replacing media after saving the translated image. Solution: This issue may occur if there was a mass import or a change that did not trigger WPML to detect a change in the original version of the product, which is necessary for image translation. To resolve this, the client needs to make a small change on each product page to prompt WPML to perform the translation. Alternatively, the client can use the bulk edit feature by going to the WordPress Dashboard > Products, selecting the products, and clicking the edit option at the top. Without changing anything, clicking the update/save button will force WPML to recognize the changes and perform the necessary translations. However, this will cause all the products to appear as needing translation completion, indicated by a circle icon, until the translation is verified as 100% complete.
If this solution does not apply or is outdated, or if further issues arise, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If problems persist, please open a new support ticket at WPML support forum.
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.
Background of the issue:
I am trying to use media translation to translate an image in an Elementor page, but the original image is still shown in the translated page. I have already configured WPML settings for media translation and scanned and replaced media after saving the translated image. Here is the link to the page where the issue can be seen: hidden link. I expected to see: hidden link.
Also, WPML media shows as "Not installed" in the Support page. I already tried deactivating, reinstalling WPML Media and even WPML core.
Symptoms:
Instead of the translated image, the original image is displayed: hidden link.
Questions:
Why is the original image still showing instead of the translated image?
Are there additional steps needed to ensure media translation works with Elementor?
The WPML Media Translation plugin seems to be installed correctly from what I see in the debug information.
One thing that I see that might cause issue is that the WPML Media needs enough PHP memory limit to be able to work correctly and at the time being your WordPress installation does not utilize enough memory.
After that, please make a small change on the Elementor page and make sure the translation is 100% complete. See if it fixes the image not showing the translated version.
One other thing is that we have an issue with the new caching system of Elementor that worths checking by you:
This might be happening because maybe you had a mass import or some sort of change that did not cause WPML to detect that there is a change on the original version of the product and it needs that to perform any sort of Image translation for sure.
For example, if there is a product that is already translated but you translate the media after the fact, you still will need to make a small change on a product to force WPML to do the actual work.
That is important for WPML as if WPML tries to guess what is changed without the actual edit of the user it will cause problems along the way as it might be scenarios that the customer would say, why there is a change while I did not change the original language?
So basically you need to do the process for the products that you need the media translation.
Alternatively, you can go to WordPress Dashboard > Products select them and click the edit option at the top and without changing anything click the update/save button.
That will bulk edit products without affecting the actual content. and will force WPML to perform the changes.
The side effect of such a step is that you will see all the products now in a status of need translation complete with a circle icon. It will not have an effect on the final point which is what you want but be aware that only when you actually make sure the translation is 100% complete the cion next to the products will show as Pencil.