Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › emember registration form with polylang
- This topic has 9 replies, 3 voices, and was last updated 6 years, 8 months ago by admin.
-
AuthorPosts
-
March 12, 2018 at 5:23 pm #14763naddoudeMember
Hi,
I am creating a multilanguage site and I am using polylang.
I modified the eMember_init.php in order to have the log in,account information and password reset forms in the right language. The problem is that it does not apply to the registration form.
What can I do to have this form using the right language?
Thank you for your help.
Nada
March 12, 2018 at 6:44 pm #77478wzpModeratorThe “default” method for changing languages in eMember is:
There is also an addon for WPML integration (see page 4 of this thread):
https://support.tipsandtricks-hq.com/forums/topic/multilanguage-support
The WPML addon must be requested from us:
March 13, 2018 at 4:23 pm #77479naddoudeMemberThank you for your reply.
But I already changed the text messages in the corresponding files, the problem is that the form does not even get the messages it always gets the french language : my site is in french but I added 2 languages (english and spanish).
In the beginning all the forms where in french so I searched the forum and found this solution : https://support.tipsandtricks-hq.com/forums/topic/multilanguage-support so I changed the eMember-init.php file, in order to get the language from the URL, it worked for all forms except for the registration form and the edit profile form.
I tried this solution : I added 2 membership levels, one for each additionnal language, and I inserted the shortcode[wp_eMember_registration_form_for level=XX] XX being the membership level in the right language.
It worked fine but I still have a proble with the edit profile form because I can’t specify the membership level, is there a solution for this?
Many thanks
Nada
March 13, 2018 at 4:25 pm #77480naddoudeMemberCorrection “It worked fine but I still have a proble with the edit profile form because I can’t specify the membership level, is there a solution for this?”
It worked fine but I still have a problem with the edit profile form because I can’t specify the membership level in the shortcode [wp_eMember_edit_profile], is there a solution for this?
March 14, 2018 at 4:08 am #77481adminKeymasterI am not sure what customization you are doing. The preferred solution for this is to use our polylang addon for emember. It dynamically loads the language file based on what your visitors have selected in the polylang language selection widget. Are you using that addon?
March 14, 2018 at 8:38 am #77482naddoudeMemberYes I am using polylang but I can’t find the polylang addon for emember on your website
March 15, 2018 at 3:22 am #77483adminKeymasterI have sent the addon to you via email.
March 15, 2018 at 5:39 pm #77484naddoudeMemberThank you for the addon.
I installed it but I still got the problem for pages containing the shortcodes [wp_eMember_edit_profile] and [wp_eMember_registration], it still does not load the right language file. It seems that the problem comes from Visual Form Builder.
I am trying to find a solution for this.
March 15, 2018 at 7:49 pm #77485naddoudeMemberI was using the eMember Form Builder addon. I uninstalled it to see if it worked better. Now the forms are correctly translated when I switch language on polylang widget but there is still a small problem : the error messages are still displayed in french on the spanish page and on the english page.
March 16, 2018 at 6:30 am #77486adminKeymasterI will need to get some more details of the error. Please send me the info by replying to my email.
-
AuthorPosts
- You must be logged in to reply to this topic.