Skip Navigation

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

Problem:
The client needs help translating a button in the header menu of their website. The translation does not display correctly in the English version of the site, despite following the WPML documentation on translating theme and plugin texts.
Solution:
We recommend trying two methods to resolve the issue:
Method 1:
Navigate 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 front end of the site where the string is displayed, and return to WPML > String Translation to search for the string.
Method 2:
If the string is not found in WPML > String Translation, it might be categorized as an admin text string. You can find and translate admin text strings by following the guide here: Translate Admin and Settings Strings
Related documentation can be found here: Finding Strings that Don't Appear on the String Translation Page
If these methods do not resolve the issue, or if the strings originate outside of WordPress, WPML may not be able to detect or translate them. Please keep us informed about your progress.

If this solution does not apply to your case, or if it seems outdated, we 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. If you still need assistance, please open a new support ticket at 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 0 voices.

Last updated by Mihai Apetrei 1 month, 3 weeks ago.

Assisted by: Mihai Apetrei.

Author Posts
November 12, 2024 at 1:37 pm #16392899

evangelosB

Background of the issue:
I need help with translating a button in the header menu of my website hidden link. I have referred to the WPML documentation on translating theme and plugin texts, but it did not resolve the issue.

Symptoms:
The translation is not displaying correctly in the English version of the site.

Questions:

November 12, 2024 at 10:09 pm #16394789

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there, and thank you for reaching out.

Certain strings may require a specific procedure to be located and translated.

Moreover, the proper method for translating strings greatly depends on how they have been incorporated into 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.

Please attempt both methods and check if either of them resolves the issue.

Method 1:

Navigate to WPML > String Translation, and at the bottom of the page, you will find a checkbox labeled "Look for strings while pages are rendered." You can enable (check) that option, then go to the front end to a page where the string is displayed, and afterward return to WPML > String Translation to search for that string and see if it now appears.

Method 2:

If you can't locate them within WPML > String Translation, they might be included as admin text strings.

This is the typical process for finding and translating admin text strings:
https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings

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

PS: There is also something important to mention; if the strings come from outside of WordPress, it would be impossible for WPML to see or translate them.

Please keep us informed about your progress.

Mihai Apetrei