Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was unable to translate form labels on a page using the MW WP Form Plugin, which is not officially compatible with WPML. Despite setting the form to translatable, the labels were not appearing in the string translation.
Solution:
1. We advised setting the MW WP Form (mw-wp-form) to 'Translatable' in WPML->Settings->Post Types Translation.
2. After making the form translatable, if the form still shows as pending (eye icon), it should be published manually.
3. For translating the form:
- Switch to the Arabic language in MW WP Form -> Forms.
- Note the shortcode of the English form and the Arabic form.
- In Pages -> Contact Us, use the language switcher to switch to Arabic, dismiss any warnings, and manually change the shortcode from the English version to the Arabic version.
4. If issues persist, consider setting the forms to 'Do not translate' and manually duplicate and edit the form from English to Arabic, then use the new form's shortcode on the translated contact page.

If these steps do not resolve the issue or if the solution seems outdated, 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 further assistance is needed, 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: 

This topic contains 5 replies, has 2 voices.

Last updated by john-robinA 4 months ago.

Assisted by: Bobby.

Author Posts
September 20, 2024 at 8:57 pm #16204139

john-robinA

Also, I would like to add the translation for this page:
hidden link

Whereas the form labels are not translated because it is not registered as strings and cannot be found in string translation.

For this page, I am using MW WP Form Plugin. Would it be possible for WPML to read these labels as strings? What should I do with it?

September 20, 2024 at 9:02 pm #16204143

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

MW WP Form is not an officially compatible plugin with WPML.

For example we have official compatibility with WP Forms and to translate it properly you would need a glue plugin as seen here: https://wpml.org/documentation/related-projects/creating-multilingual-forms-using-wpforms-and-wpml/

When I go to WPML->Settings->Post Types Translation you can locate "MW WP Form (mw-wp-form)" which is currently set to "Not translatable". Please go ahead and set it to "Translatable", then you should be able to add a translation for it.

Test this and let me know your results.

September 22, 2024 at 3:17 pm #16206369

john-robinA

Hello! I have set the MW WP Form to translatable and still not able to locate the labels. This plugin is a requirement in the website. Is there anything else we can do?

post-type-translation.png
September 23, 2024 at 6:07 pm #16211370

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for updating me!

The form is translated, however it was pending review (eye icon), I have now published it for you.

1. Go to MW WP Form -> Forms and switch to Arabic language

2. The EN form has a shortcode of 212

3. The AR form has a shortcode of 745

4. Go to Pages -> Contact us -> edit -> use the language switcher at the top and switch to AR (dismiss the warning)

5. manually edit the shortcode switch 212 to 745 and update.

NOTE: The tour you are interested part seems to pull data from somewhere (ID cf-tour), please make sure to fix that or translate into the AR language. Not quite sure how that is set up.

September 23, 2024 at 6:08 pm #16211373

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

P.S another option can also be the following:

- Go back to WPML->Settings and set the forms to "do not translate"
- duplicate your existing form and edit it changing the text manually from EN to AR
- Use the new forms shortcode and add it to the translated contact page in the same manner as suggested above.

Let me know your results, please.

September 29, 2024 at 12:52 pm #16233189

john-robinA

Hello. Will update you tomorrow. Thanks

September 30, 2024 at 3:48 pm #16237091

john-robinA

Hi! I confirm that the page is now translated. Thank you so much for the help!!