• Resolved mehtimmeh

    (@mehtimmeh)


    Hi.

    I use Ultimate Member with Polylang. I installed the integration plugin “Ultimate Member – Polylang”. The main language is Dutch (nl_NL), and the translated language is English (en_US). I have a few problems tho:

    Problem 1:

    I translated the emails I use, and created a new registration and login form which I translated to English to be used on my English pages. However, some emails arent sent in English. I will show them in order here

    • Account Activation Email: Is being sent in English, so great. However, the Account Welcome Email is not being sent in English after verifying. That one is sent in Dutch. Both the Dutch and English email use this shortcode for the verifying: {account_activation_link}.
      When I verify by clicking the button, it sents me straight to the Dutch “/my-account” page aswell. I have a “/en/my-account” page for the English version, but every new registered person is being sent to “/my-account” (since both Dutch and English users are both assigned the role “Customer”);
    • Account Welcome Email: Is not being sent in English, but in Dutch;
    • Account Deleted Email: Is Is not being sent in English, but in Dutch;

    Problem 2:

    I also use Password Reset Email and Password Changed Email, but when I put in my email to reset the password in the password reset form, it only works on the Dutch translated page, not on the English translated page.

    When I do it on the English translated page, I get no message and also no email is being sent out.

    When I do it on the Dutch translated page, it works, but of course I get the emails in Dutch.

    Note that I have not set Polylang to “detect browser language”. If there are translated shortcodes for {account_activation_link} that is for English or another translated language, like: {account_activation_link_en} and {account_activation_link_nl}, maybe that would solve problem 1.

    Another solution might be creating different user roles per language, but I see that conflicting with other aspects of my webstore, including transactional woocommerce emails. Also, I do not know how to send translated UM emails to certain user roles.

    For problem 2 I have no idea what could be happening.

    Any help would be HIGHLY appreciated. I know this is a lot, but I hope we can get this working (also for other people facing this issue).

    UPDATE: changing the redirect of the “Customer” role from “/my-account” to “/en/my-account” and then testing still sends me, after clicking the verify account button to the Dutch my-account page (and still sends the?Account Welcome Email?in Dutch)

    UPDATE: I added a language dropdown in the registration progress according to this tutorial: https://docs.ultimatemember.com/article/1596-site-language-custom-field.

    Unfortunately, that didn’t help. Although it changes the site language in the User profile to English (United States), after activating the account via the email button, I still get sent to the Dutch my-account page and the Welcome email is still in Dutch aswell, isntead of English (what I selected at the registration process).

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hello @mehtimmeh

    Ultimate Member plugin does not support the?Polylang?plugin by default. I copied your question to the “Ultimate Member – Polylang” extension issue.

    The account activation link and the password reset link in email does not contain language info, so the site uses default language when you come from email to the site. I hope this can be solved by adding the lang parameter to the account activation link and the password reset link. This needs investigation and testing.

    The locale usermeta sets a language of the admin dashboard (wp-admin area) for a certain user. This usermeta does not influence frontend language.

    Regards

    Thread Starter mehtimmeh

    (@mehtimmeh)

    Thank you for the reply. Very helpful information.

    Also thanks for forwarding it to the extension github. I will wait and see if we can work on a solution there!

    Plugin Support andrewshu

    (@andrewshu)

    Hi @mehtimmeh

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Polylang email language after activating account’ is closed to new replies.