This thread is resolved. Here is a description of the problem and solution.
Problem: The client needed to translate form field labels such as 'Country', 'pickup location', and 'dropoff location' that were not translated on a multilingual website.
Solution: 1) We instructed the client to scan the theme for translatable strings by navigating to WPML > Theme and Plugins Localization.
2) After scanning, the client should go to WPML > String Translation and search for the label they want to translate.
3) Once the label appears in the search results, the client can add a translation by clicking on the '+' icon below the flag of the language they are translating to.
4) Finally, the client should clear the WP Rocket cache to see the changes on the front end.
If the solution provided here is not relevant to your case, either because it's outdated or not applicable, we recommend opening a new support ticket. We also highly suggest 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 further assistance is needed, please contact us through the 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.
It is translated, but some of the fields in the form field tags top of screen are Not translated,, example Country , pickup location , dropoff location ....
How can these field description tags be translated?
I understand the issue. Upon investigation, I noticed that the search form functionality is added by the theme you're using. If the translation support is integrated properly for those labels, then you should easily be able to translate them from the String Translation section.
Given that your theme is custom-made, it's important to first verify that translation support for text is properly implemented, specifically ensuring that texts are enclosed within the "gettext" function and assigned a relevant text-domain. For comprehensive instructions on adding translation support for static text in your custom theme/plugin, please refer to this guide: https://wpml.org/documentation/support/translating-the-theme-you-created/
If the Translation support is added properly for the theme, then you can do the following:
- Please go to "WPML > Theme and Plugins localization"
- Select the Theme and click on the "Scan" button.
- Once the Scanning is completed, please go to "WPML > String Translation"
- Search for the text that you want to translate. If that appears in the result, please add the translation by clicking on the "+" icon below the flag.
I hope it will help. However, if the texts still don't appear in the String Translation section, you may follow the step-by-step instructions provided in the guide below.
The guide covers multiple ways to find the strings and I hope it will help in case you're unable to locate the text. Let me know if the information above helps or if you need further assistance in this matter. I will be happy to help.
Since the issue persists, a closer inspection will be required to understand the root cause of the issue.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.
You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Hello There,
Thanks for sharing the access information.
I have checked and found that the translation support is added correctly for the text. When I scanned the Theme by going to "WPML > Theme and Plugins Localization" and checked the "String Translation", the Field Label showed up there. I translated the label "Country" into Spanish and it appeared correctly in the Spanish version of the site. Please check this screenshot: hidden link
Here's what you need to do:
1) Please go to this link: hidden link
2) Search for the Label that you want to Translate.
3) When it appears in the result, add a Translation for the label by clicking on the "+" icon below the Flag.
4) Clear the WP Rocket Caches and then check the frontend from other languages. The Search form field label should now appear translated.
Feel free to let me know if there is anything else you need help with. I will be happy to assist.
If you want to scan the Theme, you need to select the Theme(Renta Camper Van), not the String Translation Plugin.
Just select the Theme form "Strings in the themes" and click on the "Scan" button. Feel free to check the guide below if you need help with scanning the theme or plugins for Strings.