Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client needed to translate the "I've read and agree to the terms & conditions" acceptance text on the WooCommerce checkout page but was unable to find the correct string to translate.
Solution:
We recommended several steps to locate and translate the string:
1. Search for the string in WPML > String Translation. Helpful documentation on using the String Translation plugin can be found here: String Translation documentation.
2. If the string is not found, scan the theme or plugin generating the string for translations, as explained here: Theme Localization documentation.
3. Check if the string is an admin text and follow the process for finding and translating admin text strings: Finding and translating admin text strings.
4. Enable the "Look for strings while pages are rendered" option at the bottom of the WPML > String Translation page, visit the front end where the string appears, and then search for it again in String Translation.
5. If the string is hard-coded in the theme files, refer to this guide for translating: Translating hard-coded theme strings.

If these steps do not resolve the issue or if the solution is outdated or not applicable to your case, we encourage you to open a new support ticket. We also highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please contact us on 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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Mihai Apetrei 3 years, 2 months ago.

Assisted by: Mihai Apetrei.

Author Posts
April 14, 2022 at 3:43 pm #11023331

maximv-4

Hi! I'm busy translating, almost done but I can not find where to translate the "I've reaad and agree the terms & conditions" acceptance on WooCommerce checkout (see screenshot)

In what string translation do I need to look? If login is needed pleas let me know

Kind regards,
Maxim

read and agree.jpg
April 14, 2022 at 6:05 pm #11024009

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi Maxim.

The proper way to translate strings depends a lot on how they have been implemented inside the theme/plugin. Sometimes, there are even duplicates of the same string and only one of them is the correct one that needs to be translated.

Also, sometimes, simply removing the string (checking the box and removing it) and then re-registering it again by scanning for it (one of the methods below) and re-translating it resolves the issue.

I will share a couple of steps that you can follow and see if any of them helps you find and translate those strings (step 2 or 3 might be the one that you are looking for).

1. You can go to WPML > String Translation and search for any of the strings and see if there are any results

Here is some very helpful documentation on how to use the String Translation plugin:
https://wpml.org/documentation/getting-started-guide/string-translation/

If it's not there, it could help if you scan the plugin/theme that's generating the strings and then go back to WPML > String Translation and see if the strings show up:
https://wpml.org/documentation/getting-started-guide/theme-localization/

2. If you can't find them inside the WPML > String Translation, they might be added as admin text.

This should be the normal process to find and translate admin text strings:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

3. You can also try to go to WPML > String Translation and at the bottom of the page you will find a checkbox called "Look for strings while pages are rendered". You can enable (check) that and then go in the front end to a page where you have that string showing up and then go back to WPML > String Translation and search for that string and see if it now shows up.

4. This link might help, too, in case the string is hard-coded in the theme files:
https://wpml.org/documentation/support/translating-the-theme-you-created/

Please let me know how that goes.

Kind regards,
Mihai Apetrei