[Resolved] Terms in original language showed in translated language
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was facing an issue where the English terms and the contact form on their property pages were displaying in Italian instead of English, despite English being the default language. This issue was observed on specific pages of their website after importing and modifying a theme template.
Solution: We identified that the terms and contact form were being managed through the theme options of the Houzez theme. The incorrect display of language was due to the settings in the WPML String Translation. To resolve this, we changed the language setting of the specific strings to English and then translated them to other languages. It was crucial to ensure that the theme options were saved in the same language consistently (either Italian or English) and that the strings were re-translated every time the theme options were saved, as they are treated as new entries.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-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.
Background of the issue:
I am trying to ensure that the English terms (default language) and the contact form remain in English on all property pages of my website. However, they have unexpectedly turned into Italian. Here is an example of a page where this issue can be seen: hidden link
Symptoms:
The terms and contact form on the property pages are displayed in Italian instead of English, which is the default language of the page.
Questions:
Why did the English terms and contact form change to Italian?
How can I revert the terms and contact form back to English on the property pages?
is this form you created or how was is added in the default language?
For example, if you have translated it you can manually edit and adjust the translated form to what you need, if this form is part of the theme files, then it could be that as expected translations are loaded from theme files since it is expected that form is translated and not stays in English.
I imported a template of the theme and I modified it, so I suppose the forms and other details are part of the theme files. It was all correct but all of a sudden they turned into Italian (only in some English pages). I just noticed that also in two other pages some terms did that (I attach a screenshot), these 2 pages:
hidden link hidden link
The thing is that when I look for the words with the string translation tool they are in English of course, so what should I do? Should I change the language of the strings into another language not used on the website and correct it?
Or should I contact the theme support to ask how to fix this error? (they are probably going to blame WPML)
okay, but how did you translate it then, via WPML String translation or? If yes, then in same way you should be able to translate and add English text or Italian, just make sure that the flag (language) matches.
We do have chat, if you wish you can close this forum ticket and start a new chat with one of my colleagues.
- Please backup the site files and database before providing us access.
- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.
I have checked and I can see this is being added from Houzez theme options.
If you check the string in String translation you can see that for English it says Nome, which is not correct. I have changed language of this string and then translated it to other languages and it works fine now, please check video:
- hidden link
Note you will need to do this for all other theme option strings also.
Since these are being added from theme options make sure you are saving theme options always in the same language in this case Italian or English, you would also need to re-translate them every time you save theme options since it is looked at as a new entry in the default language and needs string translation.
Ok I was able to fix almost everything the way you showed me, but I still have problems with 2 terms, "Locali" (in the details section) which has to be "Rooms" in English and "Informazioni di contatto" (in the contact form) which has to be "Contact information" in English.
Can you please help with that because I could not fix it.
Thank you very much
I searched for strings and translated them and they work fine. For Locali I have clicked bottom "Translate texts in admin screens »", searched for it and added for translation and then translated them.