Skip Navigation

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

Problem:
The client needed to translate the days, hours, mins, and secs in the promo countdown on their website and was having trouble finding the correct strings to translate.
Solution:
We recommended two methods to locate and translate the strings:
1. Enable the "Look for strings while pages are rendered" option in WPML > String Translation, visit the page with the countdown, and then search for the strings again in the String Translation interface.
2. If the strings are not found in the String Translation, they might be registered as admin texts. We provided a link to the documentation on how 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/

We also highlighted the importance of checking for duplicates of the string, as sometimes only one of them is the correct one that needs translation.

Please note that this solution might be irrelevant if it's 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 you still need assistance, please open a new support ticket: Contact WPML Support.

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 1 year ago.

Assisted by: Mihai Apetrei.

Author Posts
April 3, 2024 at 11:59 am #15477939

henrikt-5

I try to translate days, hours, mins, secs in the promo countdown

I've tried the different propositions found when googling the matter with WPML

The layout is found here with wrong English text :hidden link

The site is hidden link

April 3, 2024 at 1:27 pm #15478671

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03: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. 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.

2. 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

April 3, 2024 at 3:43 pm #15479475

henrikt-5

Hi Mihai,

I followed your 1st instructions and it went fine. Thanks a lot, it's perfectly translated !

Best regards,
Henrik Tauson