Skip Navigation

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

Problem:
You want to translate the 'buy now' button in the Woocommerce Motta theme using WPML, but the translation does not work.
Solution:
First, ensure that you are using the correct string for translation. Sometimes, there are duplicates of the same string, and only one of them is the correct one that needs to be translated. Here are two methods you can try:

Method 1:
Go to WPML > String Translation and at the bottom of the page, enable the checkbox labeled "Look for strings while pages are rendered". Then, visit the page where the 'buy now' button appears and return to WPML > String Translation to search for the string.

Method 2:
If the string does not appear in WPML > String Translation, it might be categorized as admin text. Follow the process outlined here 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/

If these steps do not resolve your issue, or if the solution becomes outdated, we recommend 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 necessary, please open a new support ticket for further assistance.

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 2 months, 1 week ago.

Assisted by: Mihai Apetrei.

Author Posts
September 21, 2024 at 11:47 am #16204760

patricG

Background of the issue:
We want to translate the 'buy now' button in the Woocommerce Motta theme on our site hidden link. We are using WPML to translate from EN to other languages like DE, FR, IT.

Symptoms:
The translation of the 'buy now' button does not work.

Questions:
Can you let me know how to translate this button?

September 23, 2024 at 9:15 am #16208169

Mihai Apetrei
Supporter

Languages: English (English )

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

there.

Before this ticket gets assigned to my colleagues, I will try to help.

The proper way to translate strings depends a lot on how they have been implemented inside the theme/plugin.

IMPORTANT: 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 (sounds like you did this already so let's focus on finding the duplicates that are still NOT translated).

Method 1:

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.

Method 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/

Please let us know how that goes.

Kind regards,
Mihai Apetrei