• Resolved jsleon

    (@jsleon)


    Hello, I would like to access the text below that the user receives by email when he changes his password:

    Greetings *****,
    This message confirms that your password has been changed on ****.
    If you have not changed your password, please contact the site administrator at this address: **********
    This message has been sent to **********

    Regards,
    The entire ****** team
    =====
    My problem is that I want to create an English version of that email, the users who make the request in the English part of the Website receives that email in French. Thank you for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi! Have you solved your problem?

    It would a good idea to share your solution here, so other folks could learn with you in case the face the same problem.

    Thank you!

    Thread Starter jsleon

    (@jsleon)

    For a “PO” translation file, the text in the code must be identical to the text in the “PO” file BUT I did not know that the spaces were important … I removed the spaces and it works.

    FOR EXAMPLE:
    ****user.php from wp-includes
    $pass_change_text = __( ‘Hi ###USERNAME###,

    This notice confirms that your password was changed on ###SITENAME###.
    ….’)
    =========
    *****PO file
    msgid “”
    “Hi ###USERNAME###,\n”
    “\n”
    “This notice confirms that your password was changed on ###SITENAME###.\n”
    ….
    msgstr “”
    “Salutations ###USERNAME###,\n”
    “\n”
    “Ce message confirme que votre mot de passe a été modifié sur ###SITENAME###.\n”
    ….
    ========

    In the “PO” file we see 2 line or enter (\n) And in the user.php code we also see 2 lines but what we do not see are the spaces (which is normally invisible to The naked eye).
    When I removed them all, it’s worked perfectly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translation : email notification (password)’ is closed to new replies.