This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're unable to translate HTML messages set in WPForms Locker addon or other WPForms addon message fields, and you've checked for the string without success, you might consider modifying the XML configuration.
Solution:
We recommend following these steps:
1. Edit the
wpml-config.xml
file.
2. Add the following code:
<property>form_locker_user_message</property>
underneath this line:
<property>form_pages_footer</property>
3. Update the form.
4. Send the form to translation.
These steps resolved the issue in our sandbox testing environment.
If this solution does not apply because it might be outdated or not suitable for your 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 persists, 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: Compatibility
This topic contains 43 replies, has 2 voices.
Last updated by marcoS-96 2 years, 7 months ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
May 12, 2022 at 1:28 pm #11209319 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Marco, I've added them to the file. Kindly check it here. (hidden link) Would you please check if the issue is replicable? If yes, please let me know the steps to reproduce it. Thanks for your cooperation Regards, |
May 12, 2022 at 2:04 pm #11209795 | |
marcoS-96 |
Hi Osama, From the home page, on the right, you can see menu and language selector. All field has been translated. I can open Form Page (EN): hidden link But... how may I open Form Page (IT) in italian? I've translated SLUG in WPForms "Form Page" addon from test-form to modulo-test If I try to open: hidden link Thanks in advance, Marco |
May 12, 2022 at 2:30 pm #11209935 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Marco, Thanks for replicating the issue. You can access the form using this URL. (hidden link) I've noticed that the settings coming from (form_pages_*) are not translated on the front end even though they are translated in the translation editor. (Kindly check the attached screenshot) Would you please check if the other settings are translated correctly? Kindly let me know which settings are not translated, so I can consult our compatibility team. Thanks for your cooperation Regards, |
May 12, 2022 at 2:52 pm #11210161 | |
marcoS-96 |
Hi Osama, I've checked... all other translations seem works fine, but (as in your image), some fields coming from (form_pages_*): I've also tried to translate slug to: it/test-form (but without success). Many thanks. Marco |
May 12, 2022 at 2:59 pm #11210255 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Marco, Thanks for your feedback. I'll check this with our comptapilty team and update you with our findings. Thanks for your cooperation and patience Regards, |
May 13, 2022 at 2:30 pm #11218013 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Marco, 1) Our compatibility team has found a workaround to translate the (form_pages_*) strings on the front end. Kindly check the following steps: 1- Edit the (wpforms-form-pages/src/Frontend.php) on line 89 // Set form data to be used by other methods of the class. $this->form_data = apply_filters( 'wpforms_frontend_form_data', $form_data ); 3- Clear the cache and check the front end Kindly check the page form and let me know if it's translated correctly. (hidden link) 2) As for the slug issue, please contact plugin support to check this issue and make sure that you use the latest version of the plugin. I hope this helps you. If you need further info, please let me know. Best regards, |
May 13, 2022 at 3:15 pm #11218387 | |
marcoS-96 |
Hi Osama, thanks for Your answer and support. Best regards, Marco. |
May 13, 2022 at 3:18 pm #11218423 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Marco, Could you please try the default language slug? (hidden link language slug) That should open the form to check the front end. Kindly let me know if that helped you. Regards, |
May 13, 2022 at 3:58 pm #11218623 | |
marcoS-96 |
Hi Osama, I've also tried to translate slug from "modulo-suggerimento" to "en/default" Thanks, Marco |
May 13, 2022 at 3:59 pm #11218673 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Marco, I would need to take a closer look 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 have access to it. ❌ Please backup your database and website ❌ ✙ I would need your permission to de-activate and re-activate 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. Thanks for your cooperation Regards, |
May 14, 2022 at 9:37 pm #11222579 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Marco, Thanks for the access details. I've checked the form and run WPML troubleshooting functions with no luck. Also, I've deactivated the plugin except for the active plugins on the sandbox site, but that didn't help. As a testing step, I changed the language URL format from "Different languages in directories" to "Language name added as a parameter ". After that, the form opened correctly using this URL. (hidden link) So the issue is caused by the language URL format, so please check your installation and server configuration. Also, please check your .htaccess file. Kind regards, |
May 16, 2022 at 9:02 am #11227599 | |
marcoS-96 |
Hi Osama, thanks a lot for you support. Thaks a lot again. Marco |
May 16, 2022 at 9:33 am #11227895 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Marco, It's great to hear that the "Language name added as a parameter " language URL format is working. Please let me know if you need further assistance regarding the issue. Have a great day! Best regards, |
May 16, 2022 at 10:11 am #11228435 | |
marcoS-96 |
Hi Osama, sorry but I came back to Live site hidden link and I see something goes wrong. I've deletet .htaccess from root site, Now I see this message: For BuddyPress Multilingual to work you must set "Different languages in directories" in WPML > Languages > Language URL Format Also I see that there are problems with WooCommerce product transaltion. For example here you can see a demo course shop page: and if I select EN versionI get 404 errore page: So, I've solved with WPForm Form Page, but now I have problems with BuddyPress and WooCommerce. There's a way to works with "Directory with different languages" and make it works also with WPForms Form Pages? Others ways? Thanks in advance. Marco. |
May 16, 2022 at 10:24 am #11228465 | |
Osama Mersal Supporter
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+02:00) |
Hi Marco, There is something wrong with your installation/server configuration because WP Forms should work with "Different languages in directories" as it works on the sandbox site. (hidden link) In my opinion, it could be one of the following reasons: Kindly check the above possible reasons for the issue, and that could help identify the real reason to know how to fix the problem. Regards. |