Skip Navigation

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

Problem:
The client is unable to translate strings from English to Latvian for a new gift card plugin. Despite translating the string "You Print & Give To Recipient" to Latvian, it still appears in English on the frontend. The client has already increased the memory limit, deleted and re-translated the string, but the issue persists.
Solution:
We recommend checking for duplicate strings that may not have been translated. Here are the steps to follow:
1. Navigate to WPML > String Translation and at the bottom of the page, enable the checkbox "Look for strings while pages are rendered". Then, visit the frontend page where the string should appear and return to WPML > String Translation to search for the string.
2. If the string is not found in WPML > String Translation, it might be registered as admin text. Follow the process outlined in our documentation 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 note that the solution provided might be outdated or not applicable to your case. If the issue persists, we highly 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 11 months ago.

Assisted by: Mihai Apetrei.

Author Posts
February 26, 2024 at 9:54 pm #15346589

Jānis Anspaks

I recently purchased a new gift card plugin, but I cant seem to get the strings translated form english to latvian. Here is the test product: hidden link
For example I have translated this part: "You Print & Give To Recipient" to latvian: "Jūs izprintējat un nododat saņēmējam", but it just do not appear to be translated in the frontend. I already increased the memory limit from 40MB to 256MB, then deleted the translated string, scanned the plugin, translated that string again, but still I can only see it in english in frontend. Can you please help me to solve this issue?

February 26, 2024 at 11:05 pm #15346660

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi 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).

1. Please try this:

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.

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

February 27, 2024 at 6:33 am #15347237

Jānis Anspaks

Thank you! Automatical string scanning showed duplicate strings and after I translated them my product was translated also in frontend.