Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 16:00 10:00 – 14:00 10:00 – 14:00 9:00 – 13:00 9:00 – 13:00 -
- 17:00 – 21:00 15:00 – 19:00 15:00 – 19:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Bucharest (GMT+02:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Mihai Apetrei 3 weeks, 5 days ago.

Assisted by: Mihai Apetrei.

Author Posts
November 19, 2024 at 7:30 pm #16421250

rolfv

Background of the issue:
I'm building a website for a customer and translating plugins and buttons into Dutch using WPML. I'm trying to translate a 'check availability' button on the campsite page.

Symptoms:
The 'check availability' button is translated to 'check beschikbaarheid' in the backend, but the changes are not reflected on the frontend.

Questions:
Why is the 'check availability' button not displaying the translated text on the frontend?

November 19, 2024 at 9:41 pm #16421681

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

While one of my teammates takes care of your ticket, I will provide you with the first debugging steps.

Use the following steps to confirm if you are translating the correct "check availability" button.

1. Go to WPML → String Translation.
2. Enable the option "Look for strings while pages are rendered".
3. Navigate to the page where an untranslated string is displayed.
4. Return to WPML → String Translation, deactivate the option, and verify whether the other "check availability" string has been registered.
5. Translate the string.

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

November 20, 2024 at 8:11 pm #16426465

rolfv

Hi Andrey, all clear. These were the steps I followed before and the issue still appears. It finds one "check availability" and that one is being translated, but there is more than just one - see pictures attached. Would appreciate if you can help me out. Thanks!

November 23, 2024 at 12:06 am #16435467

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 me informed about your progress.

Mihai Apetrei

November 25, 2024 at 4:42 pm #16441303

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi and thank you for the credentials.

I can confirm that I was able to log in successfully.

I am spending more time on this and I will get back to you as soon as I have more feedback.

I will leave the ticket assigned to myself for the moment.

Kind regards,
Mihai

November 29, 2024 at 3:08 pm #16460261

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there, and thank you for your incredible patience throughout the debugging process.

It's not the typical issue that can get resolved fast.

No matter what I tried, it did not work.

I'm thinking of a couple of scenarios here:

1. There's a chance some caching needs to be cleared locally or on the server (I can also see traces of Siteground, so if this site is hosted on Siteground, they have a caching section that might help if you can fully clear it).

Please take a look over their documentation here to see how you can clear the caching:
hidden link

There's a chance the theme might also store some caching on its own, but I'm not sure about this. It should be checked with the theme developers.

2. Another guess is that this theme is not fully compatible with WPML and that concrete steps would need to be taken to translate that string. In that situation, I recommend reaching out to the support team of this theme you are using and seeing if they have some quick steps to follow.

If you purchased this theme, you can find a "Submit a request" button here in the top menu:
hidden link

After you log into their site, you can open a support ticket.

3. I doubt this could be the case. Still, there's a chance (at least) one of the other active plugins might be causing this issue, so you can run a test where, after you create a full website backup, you can turn off all the other plugins and leave just WPML active (+ the minimum amount of plugins needed for your theme to function correctly: from what I can see, this theme comes with a good amount of plugins that it requires, too).

I hope that you will find this information helpful.

Please let me know how things go and if you can find any extra information using the abovementioned steps.

I will be waiting for your response.

Mihai

December 3, 2024 at 6:57 pm #16473463

rolfv

Hi Mihai,

Thanks for all your help so far. So the server is hosted at Hetzner and I couldn't find any cache storage.

I know for sure that WPML is compatible with the plugins as it was translated before but some how the translation was gone. I then tried to remove the string translation and followed your steps to get the translation back but that didnt work.

Do you think there is some one else from the support team to help me out?

December 5, 2024 at 10:35 pm #16484068

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

There is a full queue at the moment, and as much as I would love to connect you to a different supporter, the steps and process we will follow will be the same, delaying the process even more.

I'm not sure if there's anything specific that you did or if the cache cleared automatically from somewhere on the server, but at the moment, I see the strings only in the default language:
hidden link

They no longer show in English; they show in Dutch in both languages.

The topic ‘[Closed] Translating button on campsite website’ is closed to new replies.