Hello,
we have the same problem as described here: https://wpml.org/forums/topic/translated-images-not-showing-after-updating-wpml/
But the overall solution is unclear.
Your developer gives code that has errors and it is not clear how to modify the code and what the next steps are.
We need this:
1. Galleries should appear with photos in all language versions
2. Header banners and other photos
Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.
If you go to Media Library and use the admin language switcher at the top of the dashboard, do you see the images listed in both languages? If not, please go to WPML -> Settings and in the Media section, check the boxes to sync images to both languages and click Start.
If you do see the images in both languages, please be sure to make a full backup of your site and database.
Then, go to WPML -> Support -> Troubleshooting.
Look for 'Clean up' and click the following:
- Remove ghost entries from the translation tables
- Set language information
After this, are the images showing on the frontend in both languages?