Thank you for the update. I can see some progress in the sandbox.
The media translation wasn't appearing in the menu because the plugin was deactivated. I’ve activated the plugin in the sandbox, so you should now see it.
Since you've installed the theme, I took an additional step to install the required plugin and investigate the issue. It appears that in the image gallery element, images added in the default language are being copied to the translation. The array containing the image IDs seems to be the same(check the attached screenshot), suggesting that the element lacks WPML support to load the translated images.
Typically, the `wpml_object_id` filter hook is used to retrieve the translation's ID, but it seems this hook is not applied in the image gallery element of Goodlayer. As a result, the translated images do not load and appear in other languages.
To properly resolve the issue, several code changes are needed to ensure the images load correctly. This requires the author's attention, so I kindly suggest reaching out to the plugin author/support and informing them about the issue. You can share the findings I've included and I hope they can provide helpful suggestions to resolve it.
For now, you can solve the issue by manually adding the translated image in another language. Here are the steps:
- From the WordPress editor, switch to the secondary language using the language switcher on the top bar of Admin(Screenshot: hidden link)
- Once done, go to the Image gallery element and manually add the images. Make sure that the Images and their information such as caption, and alt information are translated in WPML > Media Translation.
I hope you can understand. If you have any other questions or need clarification on any particular step, please let me know. I'll be happy to help.
Thank you for this information I forwarded to Goodlayers-Travel tour. We'll see.
Anyway, I still have an issue :
Why all the ooking fomrs that I translated in the different languages, remains in English in the french language and is correctly translated in all the othe languages.
PLease, note thet the original language is French then translated, so, why in ENglish ?
By the same way, how to translate wht is in the form (surround in red, 3rd picture).
The issue with the form could be similar to the media information issue mentioned in this ticket, particularly regarding the options that appear in the dropdown. If the options are dynamic, it’s possible that translation support hasn’t been extended to those specific options, which could explain why they don’t appear translated. It would be a good idea to reach out to the Travel Tour theme support team and ask if translation support has been implemented for the dropdown options in the booking form. They might have suggestions that could help resolve the issue.
Regarding the text that remains in English on the French version, it’s possible that it hasn’t been translated into French yet, which is why the default English text is appearing. Could you please go to "WPML > String Translation", search for the English text, and check if it has been translated into French?
If not, please add the French translation for those texts. Once done, the text should appear in French on the French version of the site.
Please check and let me know how it goes. I'll be happy to help if you need further assistance in this matter.
Thank you again for the follow-up.
I will se with Travel Tour theme for the 1st part.
For the second on, unfortunately, the texte is translated in FRench, and translations doesn't seem to appea anymore,, as I know for sure it was ok before. I don't know what and why, but it is like this now : French text in English (see picture that shows the text is translated in wpml string translation)
It's possible that another instance of the same string exists in String Translation and needs to be translated. Before searching for the string, enable the "Exact match" option next to the search box in String Translation(Screenshot: hidden link), then perform the search. If you find any additional instances, with or without the "%" value, translate them as well and check again.
If the issue persists, please try the following steps and check if they helps in solving the issue.
- Please clear the caches from all optimization plugins installed on your site and from the browser as well. If possible, please temporarily disable the site caching.
- Once done, go to "WPML > Theme and Plugins localization".
- Make sure that the option 'Automatically load the theme's .mo file using 'load_textdomain'' is enabled.
- Now, go to WPML > Support > Troubleshooting
- Scroll down and you'll see a button 'Show custom MO Files Pre-generation dialog box'. Click on that.
- A popup will appear containing the 'Generate MO Files' button. Click on that and wait till the process is completed.
Please try and let me know how it goes. If you need further assistance, I'll take a closer look and try my best to assist you further in this matter.
Best regards,
Prosenjit
The topic ‘[Closed] Background of the issue: I am trying to translate media alt text and descriptions on my site https:/…’ is closed to new replies.