Skip Navigation

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.

This topic contains 14 replies, has 2 voices.

Last updated by cordonL 3 years, 6 months ago.

Assisted by: Mohamed Sayed.

Author Posts
November 29, 2021 at 4:19 pm #10089117

cordonL

Tell us what you are trying to do?
On the home page > when you click on "Create Account", a pop up form with a registration form comes up.

I'd like to translate this form (Username, Password, and Email) to Chinese and Japanese.

Is there any documentation that you are following?
No

Is there a similar example that we can see?
No

What is the link to your site?
daikokuyast.hk

首頁-Daikokuya-Shoten (1).png
November 29, 2021 at 7:12 pm #10090215

Mohamed Sayed

Hi there,
Thanks for contacting WPML support, I will be happy to help you.

I checked the compatibility status between WPML and Forminator and found that it's not officially compatible, it's not listed on the WPML compatibility list for the plugins - https://wpml.org/plugin/. This means that our compatibility team has not tested it yet.

I tested the plugin and found that you can use a different form for each language which will generate a different shortcode, then you can edit the translated page with Elementor and use the new shortcode. Please check the translated form here: hidden link

The support team of the plugin also suggests the same way, please check here: hidden link

Let me know please if that helps.

Regards,
Mohamed

December 1, 2021 at 9:59 am #10103147

cordonL

Hi,

I've followed the instructions you've given me.

Still didn't work.

I contacted WPDEV, the author of Forminator Pro.

They've done some tests and it shows that Fominator form is correctly rendering the translations on the site.

So we believe WPML is just not loading the shortcode properly in a pop up.

Could you help us double check this?

December 1, 2021 at 11:52 am #10104473

Mohamed Sayed

Hi,

Sure, can you please tell me if the popup widget is a standard Elementor widget or coming from another addon?

I have also created this clean sandbox setup on our servers here:
hidden link (one click login)

I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) and to also install (Elementor - Forminator) and try to recreate the issue

Please don't install anything else like plugins that are not necessary, on a clean sandbox we try to use just the WPML plugins and the plugin/theme that's part of the issue

If the issue is going to take place on this clean setup on our servers too, then I can check it with our 2nd tier support team.

Please let me know how that goes and what you are able to find.

Regards,
Mohamed

December 2, 2021 at 3:58 am #10110015

cordonL

Thanks for the speedy reply.

Yes the popup is from Elementor Template.

I've added and activated Elementor, Elementor Pro, WPMUDEV and Forminator

On the "Sample" page hidden link, i only added 1 button which triggers the Elementor popup

I created 3 forms on Forminator, 1 for each language (Eng, Chi and Jap)

I also created a pop up and added the translations, BUT, i was not able to add the translation for the shortcode? Screenshots attached.

Outside of the above issue, I linked the button to pop up, and the words on pop up translate fine.

Elementor-Registration-Popup-v2.png
Advanced-Translation-Editor-WPML-QA-.png
December 2, 2021 at 8:46 am #10111305

Mohamed Sayed

Hi,

I checked the sandbox and found that the form shortcode can be translated with the String Translation module. Also, you can change it manually with Elementor by editing the original template then switching the language from the top admin bar, and editing the translated template with Elemntor. You'll be able to use a different shortcode here: hidden link

As you see in the attached screenshot, I've translated the form shortcode with String translation.

Now it works fine and the popup shows the correct form for each language. Please check the following record hidden link

Regards,
Mohamed

forminator form.jpg
December 3, 2021 at 6:50 am #10118747

cordonL

Ok that's great. but what about the live site hidden link ?

I've disabled all plugins except for Elementor, Elementor Pro, Forminator Pro, and 3 of the WPML plugins, and it still doesn't show the translation.

I've also ensured that the string was translated

String-Translation-‹-Daikokuya-Shoten-—-WordPress (1).png
Daikokuya-Shoten (1).png
December 3, 2021 at 6:54 am #10118797

cordonL

the issue isn't with Forminator, because the forms work, and have the proper languages.

December 3, 2021 at 9:32 am #10119633

Mohamed Sayed

As I mentioned the form works fine with WPML and Elementor on the sandbox site, so the issue could be related to the settings of your plugins.

I would need to request temporary access (WP-Admin and FTP) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –

Your next answer will be private, which means only you and I have access to it.

❌ Please backup your database and website before providing us with access details ❌

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

Thanks for your cooperation

December 6, 2021 at 9:12 am #10131723

Mohamed Sayed

Hi,
Thanks for providing the access details.

I checked the site but I couldn't find any clues. I see also that the forms are translated the same way it's translated on the sandbox site, but it's not working on the staging.

I will need your permission to create a copy from the staging site and download it, so I can test the issue locally and check it with the 2nd tier supporters. Please install the Duplicator plugin (https://wordpress.org/plugins/duplicator/) and let me know once it's done.

December 7, 2021 at 6:45 am #10137293

cordonL

Yes you have my full permission. I've installed Duplicator and went ahead creating a package.

Thanks!

December 7, 2021 at 6:56 am #10137327

cordonL

Actually I have trouble using Duplicator to duplicate. But I also installed another All-In-One WP Migration. Feel free to use that or install another one to make it work.

December 7, 2021 at 6:57 pm #10142073

Mohamed Sayed

Hi,

I tried both but none is working. The process fails with both of them and the server shows a database error. I think this is due to the huge size of the database.

Now I can't access the staging site as it shows a database error. Please reset the staging and I will escalate it to the 2nd tier team and ask them to try investigating the issue without a local copy because we can't get one.

December 8, 2021 at 12:41 pm #10147113

Mohamed Sayed

Thanks for providing the site copy.

After performing many tests, I found that the popup template needs to be changed manually with Elementor. Please follow these steps to achieve it:

- Go to Templates > Popups
- Switch the language from the top admin bar
- Edit the popup template and give it a unique title for each language like "Registration popup-CH" for Chinese
- Go to the homepage
- Switch to Chinese then edit with Elementor
- Edit the header and choose the right popup template for this language

I've also created a record for you showing the above steps on my local server, please see it here: hidden link

Now the popup shows the correct form as seen here:
hidden link
hidden link

Let me know please if that works for you.

Regards,
Mohamed