Background of the issue:
I have my website translated to Spanish from English using WPML. Recently, WPML stopped respecting my gallery images in each language. I have different gallery images for the Spanish version, but WPML uses my English gallery images for both versions. I use a functionality to show the first picture on the gallery of each product when the user hovers over the product, which works correctly. However, when visiting the product page, the image gallery of the English version is displayed.
Symptoms:
WPML uses English gallery images for both language versions instead of the specific images for the Spanish version.
Questions:
Why does WPML use English gallery images for both language versions?
How can I ensure WPML respects the different gallery images for each language?
While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.
It depends how gallery is being created and how you are translating the page.
If they are created as ACF fields and you are using manual WP editor, then you should use correct translation settings and set different image for each language.
If you are using WPML ATE editor, you use WPML media add-on and add different image via WPML > Media.
Hi,
Thank you so much to try to help me but that is not the solution.
I am not translating the gallery with ACF or another plugin. I have just a different galleries for each language. In page "A" I have gallery images in English, in page "B" I have gallery images in Spanish. Nothing else.
I solved the problem by myself because your collegue does not say anything and I am paying the support, but anyway.
The problem was the plugin WPML String Translation applies the gallery images from the page "A->English" to the page "B->Spanish". It uses by default the gallery images in both pages.
WPML String Translation helps you to translate the widgets, for this reason I have installed, but it does not respect the gallery images. So, WPML String Translation is useless for my case.
Actually, I have the old problem that I had some months ago, how do I translate my widgets?
if in the case I want to translate them I have to implement WPML String Translation and it does not respect my gallery images?
I apologize for the delay in responding. I will take care of this ticket; the reply time will be shorter now. I am also truly sorry for the poor experience so far.
If I understood correctly, now you want to translate widgets without installing String Translation, right?
Hi Otto,
Thank you so much.
But I really do not understand this plugin.
When I removed from my website WPML String Translation and Wocoomerce translation the permalink were not available anymore to translate. As you can see in the picture and as I told you I remove them because WPML String Translation was getting by default my gallery in English and did not give me the option to add them in Spanish. And now I have not translated my permalinks because I removed those plugins.
Please can you help me with this problem. What is the correct way to do it. To get a gallery for each language and do not get by default the gallery of the page translated. And at the same time translate the permalinks.
The standard way to do is to have WPML core and WPML String Translation enabled.
Then, we need to investigate why you can't "translate" your gallery images.
To do so, can you please elaborate on how did you create the galleries? Are they the standard WP gallery block or did you use a builder for them? Which one?
They are the standard gallery and a standard way to translate them.
As I told you, I did this :
Page A version English -> I add my gallery in English.
And Page A version Spanish -> I add my gallery in Spanish.
I translate them using the button English and changing to Spanish. Why? because, it was the only way to do it.
Thank you
The problem with your flow is that if you later edit the translation using the Advanced Translation Editor, the changes you did with the WP editor will be lost.
In order to properly translate the gallery images, you should use the Media Translation add-on (according to the debug information you've share you already have it in your site).