Skip Navigation

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.

We also provided a link to the documentation for further assistance on scanning themes and plugins for strings: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#scan-the-theme-or-plugin.

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.

This topic contains 6 replies, has 2 voices.

Last updated by Prosenjit Barman 7 months, 1 week ago.

Assisted by: Prosenjit Barman.

Author Posts
April 3, 2024 at 3:49 am #15475816

eamonnT

See this page as an example hidden link

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?

tags.png
April 3, 2024 at 10:38 am #15477530

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacing WPML Support.

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.

- https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

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.

Best regards,
Prosenjit

April 6, 2024 at 10:32 am #15490423

eamonnT

We made PHP changes as suggested still no change please check and advise

April 8, 2024 at 6:05 am #15492485

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

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

Looking forward to your response.

Best Regards,
Prosenjit

April 9, 2024 at 11:41 am #15498869

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

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.

Best regards,
Prosenjit

April 9, 2024 at 11:56 am #15498888

eamonnT

great but please clarify do I tick as in attached screen shot?

Screenshot 2024-04-09 185439.png
April 9, 2024 at 12:39 pm #15499274

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi.

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.

- https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#scan-the-theme-or-plugin

Once the Theme scanning is completed, go to "WPML > String Translation" and search for the Seaarch field label(For example: Country).

If that appears in the result, add the translation, clear the WP Rocket caches and check the front end.

I hope the information above gives a better clarification. Feel free to let me know if there is anything else you need help with.

Best regards,
Prosenjit

April 19, 2024 at 3:36 am #15541643

eamonnT

good job