Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter rogerduran1205

    (@rogerduran1205)

    For example, I want to translate this to Chinese:

    Thank you for registering for [blogname]

    Your registration information is below.
    You may wish to retain a copy for your records.

    username: [username]
    password: [password]

    Hi
    I have the same problem
    do you have a solution ?
    best regard

    You can translate here: www.yourdomain.com/wp-admin/options-general.php?page=wpmem-settings&tab=emails

    Thread Starter rogerduran1205

    (@rogerduran1205)

    Hi Bojan,

    Did you mean change the entire content from the email tab to the language I want?

    For example, the user register in Chinese. Wp-member should send the email content in chinese. Same as in English, if they register in english page, they will receive email content in English. I am using qtranslate-x plugin. My domain look like this:

    English registration page:
    https://mydomain.com/en/registration-page

    Chinese registration page:
    https://mydomain.com/zh/registration-page

    I tried editing PO file. Nothing happened. Should I do edit some php codes?

    Thread Starter rogerduran1205

    (@rogerduran1205)

    @rgires: No solution yet. I am working on multilingual website with registration.

    Plugin Author Chad Butler

    (@cbutlerjr)

    The plugin does not provide multilingual translation of dynamic content (i.e. custom dialog messages, email content, etc). There is simply no way for that to work since once you change the message (which you should do to customize to your use) it would no longer match a string in a static .po file and/or compiled .mo.

    Bojan is correct – customize the message in the emails tab.

    If you need something multilingual, then you probably would get the best results by filtering the email content based on what language you need. For this you can use the wpmem_email_filter filter hook. This filter is passed pretty much every piece of the email in an array, as well as additional arrays of the registration fields and the user’s registration data. From this, you can customize any aspect of the message.

    Should I do edit some php codes?

    I would advise against that. If you do that, you will break your setup every time you update the plugin. The correct way to approach this is with a custom filter.

    Thread Starter rogerduran1205

    (@rogerduran1205)

    @chad: Thanks for the quick response. Alright, I will try your suggestion. I hope it will work! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to translate new registration email content?’ is closed to new replies.