This thread is resolved. Here is a description of the problem and solution.
Problem: The client has translated all pages of their site and set them as 'Completed'. They want to add translations for the images on these pages. Despite activating the 'translate media library texts with posts' option and scanning for theme and plugin localization, the images are not included in the Translations, and they can't find them in String Translation. They are using WordPress 6.8.1 and Astra Theme Pro 4.10.1 with WPML Media Translation activated.
Solution: We checked the issue on the client's site and discovered that the image captions added via the Caption field in Elementor's Image element were not automatically available for translation in the Advanced Translation Editor. To resolve this, we edited the original page by adding a space in one of the elements and updating it, which triggered a change to the German translation. This allowed the image texts, including the captions, to appear in the Advanced Translation Editor for translation. We recommend the client to clear all caches on their site and at the server level to ensure that the translated content displays correctly. Additionally, the client can translate the caption text directly in WPML -> Media Translation.
If this solution does not resolve your issue or seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket here.
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 translated all pages of my site and set them as 'Completed'. I want to add translations of the images on the pages. I learned from this article https://wpml.org/documentation/getting-started-guide/media-translation/#frequently-asked-questions that they should have been in the Advanced Translation Editor, but they weren't. I activated the 'translate media library texts with posts' option and scanned for theme and plugin localization. I'm using WordPress 6.8.1 and Astra Theme Pro 4.10.1. WPML Media Translation is activated, but WPML Support says WPML Media is not installed. I deactivated the plugin and activated it again but no change.
Symptoms:
When I go to Translations and edit the pages I finished, no images are included, and I can't find them in String Translation.
Questions:
Is there any way of adding the images to the translations?
Do I have to use the 'Media Translation' and search manually for the images that need translation?
Is it possible for you to change those to the minimum requirement?
You may need to contact your hosting provider for that. Meeting those baseline requirements is critical before debugging, and sometimes solves issues you experience. The most important thing is to raise the WP Memory Limit. Please try to raise it before you contact your hosting company. You can do it from the wp-config.php file in your WordPress installation. Insert this code in that file:
After making this change, update the original page and its translation, and see if the image text is shown for translation. If it does not help, please give me access to your site so I can check this issue.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
Dear Itamar, unfortunately I always get an error message when trying to send the info. Unfortunately, the FTP server is currently just accessible from inside the company network, so I could only give you access to WordPress. Maybe that's why I'm getting the error (see screenshot)? Is it possible to just sprovide the WordPress data to you?
Thanks again for your help. Best regards, Yasemin
By sharing access to your site in the special section of the private message, you give us your consent to access your site and also guarantee that you have a backup. Otherwise, we are not allowed to access your site. If you can't share FTP, leave those fields empty.
To get past the error message you are seeing, please clear the browser's cache for this tab. Then log out and in again to your wpml.org account and try it again.
I'm enabling a private message for the following reply.
I checked this issue on your site. I checked it on this page, where I could see images with a caption: hidden link. I could see that on the German page, the caption is untranslated: hidden link. I edited the English page with Elementor and discovered that the caption has been added with the Caption field, an option for Elementor's Image element. Please see the attached screenshot attachment-caption.jpg.
I then tested this on my test site with WPML and Elementor. I could not replicate this problem. When I use the Image element and set the Caption field to 'Attachment Caption', I get it for translation in the Advanced Translation Editor.
I then slightly changed the page on your site (the page I mentioned). I added a space in one of the elements. I updated the original page, which triggered a change to the German translation. (I could see the circular arrow icon.) Please see the attached screenshot, circular-arrow.jpg. I then edited this page with the Advanced Translation Editor and could see the images' text for translation. The Caption text was also there. Please see the attached screenshot caption-text.jpg. I used automatic translation to translate this. It spent 612 automatic translation credits. Since I didn't know if you wanted to spend automatic translation credits on translating this, I credited your site from our side with an extra 1000 credits. So you didn't lose credits and got some extra ones.
I expcted to see the caption text translated on the frontend here: hidden link. However, it is not translated. I cleared the cache, but it still has not been showing as translated. I suspect you have caching on the server level that prevents the change from being displayed. Please check it and let me know if this is the case.
Please clear all the caches on your site and at the server level, and check if the problem persists.
Note that since you are using the Media translation add-on, you can also translate the caption text in WPML -> Media translation. Please see the attached screenshot, media-translation-text.jpg.
Regards,
Itamar.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.