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?
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.
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!
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.
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.
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.
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?
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.