This thread is resolved. Here is a description of the problem and solution.
Problem:
WPL strings are not translated on the front end, even if they are translated in String Translation.
Solution:
1- Edit the (/wp-content/plugins/real-estate-listing-realtyna-wpl-pro/libraries/addon_pro.php) file
2- Check the following line: 937
if(!wpl_global::switch_language($w_active_language['default_locale'])) wpl_request::setVar('wpllang', $w_active_language['default_locale']);
3- Comment this line
4- Clear the cache and check the front end
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: Compatibility
This topic contains 7 replies, has 2 voices.
Last updated by Osama Mersal 1 year, 7 months ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
September 3, 2023 at 10:43 pm #14332977 | |
vojtechV-5 |
Hello, I am currently translating my website from English to Czech. However, I have encountered an issue where the Czech translation is appearing on the English side of the site, specifically on the property detail page. I am using the WPL plugin, which is supposed to be compatible. Could you assist me with this problem, please? link to an example: hidden link |
September 4, 2023 at 8:16 am #14334357 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi, Thanks for contacting WPML forums support. I'll be glad to help you today. 1) Please try the following steps: 1- Go to WPML-> Theme and plugins localization, select your theme/plugin, and scan Kindly check our guide to know more about translating texts in the admin texts screen. (https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/) 2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/) You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line: /* Memory Limit */ define('WP_MEMORY_LIMIT', '256M'); define( 'WP_MAX_MEMORY_LIMIT', '256M'); Best regards, |
September 4, 2023 at 4:59 pm #14338757 | |
vojtechV-5 |
Hello Osama, I appreciate your help. Allow me to explain more clearly. My problem is not with the translation of the pages, but with my default language, which used to be English. I have since installed WPML and changed my default language to Czech. Nonetheless, I am still translating from English to Czech as my website was built in English. So my problem now is that after translating something from ENG to CZ, the CZ translation is displayed in Property details, even though I have selected EN as the language I want to see. All other parts of my site work properly, where anything translated into CZ is displayed in CZ and the rest in EN. However, in the Property Detail section, I only see the CZ translation even though I have selected EN language. Could you please assist me in resolving this issue? Thank you very much. |
September 4, 2023 at 7:04 pm #14339061 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi, I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Your next answer will be private, which means only you and I can access it. ❌ Please backup your database and website ❌ ✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical. ✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site. Best regards, |
September 5, 2023 at 6:57 am #14340165 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi, Thanks for the access details. I tried some workaround without luck, so it could be a compatibility issue. Please login to this sandbox site and upload the WPL plugin. (hidden link) After that, please create a test property in both languages to check if the issue is replicable. Best regards, |
September 5, 2023 at 9:51 pm #14347625 | |
vojtechV-5 |
Hello, I did what you asked and created a test property on the testing website. It is identical to my own site, when I translate from English to Czech, the English version also changes. Thank you for your assistance and time. I eagerly await your response. |
September 6, 2023 at 6:30 am #14348565 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi, Thanks for replicating the issue. I'll consult our compatibility team regarding the issue and update you as soon as I get their reply. Best regards, |
September 7, 2023 at 3:53 pm #14361599 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi, Thanks for your patience. Our compatibility team has found a workaround for the issue. Kindly check the following steps: 1- Edit the (/wp-content/plugins/real-estate-listing-realtyna-wpl-pro/libraries/addon_pro.php) file if(!wpl_global::switch_language($w_active_language['default_locale'])) wpl_request::setVar('wpllang', $w_active_language['default_locale']); 3- Comment this line I've applied this workaround on the sandbox site, so please check if the translation works correctly there before applying it on your site. Also, please consult the WPL support team regarding the issue and our findings to know if that workaround will cause a problem with other plugin's functions. ❌ Please backup your site before performing the above steps ❌ Best regards, |