Background of the issue:
I'm using the Enfold theme for a hotel website. The pages have a JavaScript code for the reservation system. I used to put this code in a text element and translate it in string translation to change the language variable (i.e. it-IT for Italian, en-GB for English, etc.).
Symptoms:
I can't find those strings for translation anymore, even though this method used to work earlier. I also tried the Enfold code element but had no luck.
Questions:
Why can't I find the strings for translation anymore?
Is there an alternative method to translate the JavaScript code in the Enfold theme?
Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.
Please make sure you are following our documentation as well as WordPress’s guidelines on how to localize scripts.
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.