This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing issues with translations resetting to a semi-translated state on your WordPress site using the Houzez theme, particularly after making changes in theme settings, adding Google reCAPTCHA, or updating the content in Elementor.
Solution:
To address translation issues with theme options and Google reCAPTCHA fields:
1. Identify the fields you want to translate in the theme options, either by their label or by inspecting the element to find its "id" or "name".
2. Depending on the type of field:
- For fields displayed with posts (like a metabox), go to WPML -> Settings -> Custom Field Translation. Set the field to "Copy" or "Translate", save, and then resave the content in the default language.
- For fields that are just strings, go to String Translation -> Admin Strings, find and include the field, then translate it in String Translation.
3. For Google reCAPTCHA fields ('recaptha_site_key' and 'recaptha_secret_key'), include these in String Translation under 'houzes_options', correct the language settings if necessary, and translate.
Please note that this solution might be outdated or not applicable to your specific case. 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 the issue continues, please open a new support ticket at WPML support forum.
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: Exception
This topic contains 0 replies, has 0 voices.
Last updated by Waqas Bin Hasan 2 months, 2 weeks ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
November 28, 2024 at 10:07 pm #16456990 | |
draganF |
Background of the issue: Symptoms: Questions: |
November 29, 2024 at 11:45 am #16459202 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting the support. Apparently this sounds like something is creating a conflict. However, to understand the issue better can you please explain how you're translating the theme options and the pages? Usually theme options are not translated by just switching to another language from the top admin bar but you need to translate these in either WPML -> String Translation or have to set these fields to copy or translate. Pages and Elementor stuff (i.e. templates, layouts) are translated using Advanced Translation Editor (ATE), or WordPress Editor in case you are not relying on ATE. In short, if you can explain little more about the above mentioned, I can help you better regarding these issues. Regards. |
November 29, 2024 at 12:05 pm #16459293 | |
draganF |
Currently, everything I needed has been translated on the website, and everything is functioning normally. For now. Part of the translation was done using the Houzez theme options, while the rest was translated with the help of WPML. However, many times in the past, I’ve experienced issues where, for example, after updating the theme, saving changes in the theme options, or adding an element to a page in Elementor, the translation "reverts" to some older state. As far as I can tell, the problem seems to occur with the translations made through the theme options, as this part of the translation "resets." |
November 29, 2024 at 12:44 pm #16459561 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates. Theme options can be a tricky business when translating. Usually we mistake these like regular content translations (i.e. translating posts and pages by clicking + icon or switching to another language). For the theme options, if you try the following steps, I hope you'll not run into the said issues: - Go to theme options and identify the fields you want to translate. This is usually guessed by the field label (i.e. field name is usually the same) or by inspecting the field element in browser to find its "id" or "name" parameter. --- A) If these options are tend to display with each post (i.e. like a metabox to control the design, heading, sidebars or etc), then these are proper fields. In this case, you can: --- B) Sometimes these fields are just strings which you only need to translate to show as translated elsewhere (i.e. a few fields you showed in your screenshot). You can: However, in any case, if you run into the same problem again, I recommend isolating the issue by cloning the site into a staging/dev site and contact us, so we can investigate in detail. While, you can continue working on the live site. |
November 29, 2024 at 12:47 pm #16459565 | |
draganF |
Please watch the video. All translations were fine. And then... |
November 29, 2024 at 12:53 pm #16459576 | |
draganF |
Few times when i had this problem i tried to translate everything from theme options, Translations, again. And it looked fine until issue occurs, and then trasnlations were "reseted" to the same point of "mixed" translation. And every time issue occurs it "resets" translations to the same point. |
November 29, 2024 at 1:08 pm #16459694 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Ok, I've watched the video and I am still convinced that those theme options are by default registered as English strings and are shown the same way. This is a common case among themes because usually themes are build this way or strings are registered as English by default, if there's no proper language tagged. This may also happen when WordPress is installed in English first but later you added WPML and chose a different language as default. Anyways, can you please create a test or staging site, where this issue can be replicated? So I can investigate in more detail and can try to find a solution. I've set your next reply as private to share the access safely. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. Alternatively, you can use this sandbox site (hidden link one-click login). Here you can upload your theme and related plugins and reproduce the issue. I've configured WPML already. Please let me know when you're ready. P.S.: I'm just closing for the weekend and 'll be able to get back to you on Monday as earliest. |
November 29, 2024 at 1:33 pm #16459752 | |
draganF |
As I see now you are closing for the weekend. I will create test site, and try ro reproduce issue. Then I will contact you? Is it ok? |
December 2, 2024 at 6:38 am #16464233 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates. Yes please, a test site where the issue can be reproduced, is better than working on the live site. I haven't logged in to your live site. I've enabled your next reply as private again to share the access to the test site. Please reply when you're ready. |
December 2, 2024 at 12:48 pm #16466158 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates, I am working on this and 'll get back to you as soon as I find something or have a solution. |
December 3, 2024 at 7:51 am #16469709 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I was able to fix the issue by following the same method I did and described for other fields. I included Google reCaptcha fields in String Translation: - recaptha_site_key from "houzes_options", then corrected the language to Serbian and then translated to English. For English translation I used the same values. Additionally I updated Elementor to the latest version. And finally tested with enabling/disabling the reCaptcha in the contact form by editing in the Elementor. Please watch my screencast hidden link for an understanding. The key points are: - These options are stored as additional strings under "houzes_options" (i.e. [houzes_options]the_field_name). P.S.: During an initial test, I lost translation for those fields, so I used Google Translate to translate from Serbian to English, for a few "Contact Forms" fields. So you 'll need to: |
December 3, 2024 at 3:22 pm #16472725 | |
draganF |
I see that the issue has been resolved, but only partially. The translations are still "messed up." I’ve already encountered a similar situation before, and I had to manually translate everything through the theme options. I’ve done this multiple times. Then, for no clear reason, the translations would "break" and end up in this same state—partially translated. This problem has occurred during theme updates, sometimes while saving changes in the theme options, and most recently with editing the contact page. If necessary, I can translate everything again, but I’m not confident the same issue won’t happen again, as it has occurred at least 25–30 times so far. I can't understand what's happening, as the translations are fine until this kind of issue occurs. |
December 3, 2024 at 3:30 pm #16472769 | |
draganF |
And I see another problem now, plugin Latin now! that Converts Serbian Cyrillic characters into the Latin alphabet, does not convert strings you translated. |
December 4, 2024 at 4:58 am #16474313 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates. As of theme updates breaking changes, can you provide some steps to reproduce it or can demonstrate how it happens, with only WPML plugins and the said theme? So we can then look further into it. Looks like the "Latin Now" is not compatible with WPML (https://wpml.org/plugin/). I recommend you to contact the plugin author and request a compatibility update. WPML offers very useful information for developers aiming to make their themes/plugins compatible. Please see https://wpml.org/documentation/support/ and https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/ for details. However, the theme update breaking changes and the problem with Latin plugin are separate issues (than the ones originally reported here). I recommend opening a separate ticket because as per forum policy we can only handle one issue per ticket. So you can get more to the point help, without mixing up several issues in one long ticket. |
December 4, 2024 at 10:28 am #16475868 | |
draganF |
I have found another solution to stop spam through the contact form, so I will not be using Google reCAPTCHA for now. Regarding the Latin Now plugin, I wasn’t aware of any incompatibility since it works flawlessly on the live site. |