Unable to translate "Forgot password" notification email

This topic contains 11 replies, has 3 voices, and was last updated by  Patrik 6 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2567

    Jordi Villar
    Buyer
    Post count: 23

    Hi!

    Using Poedit I’ve created an spanish .PO .MO translation files named as userswp-es_ES.po and userswp-es_ES.mo, both uploaded to wp-content/languages/plugins

    The most of backend strings are now translated to spanish, but when customizing notification emails, setting up the “forgot password” notificaction email, strings as

    “If this was by mistake, just ignore this email and nothing will happen.”

    “To reset your password, click the following link and follow the instructions.”
    are translated on the PO-MO files, but

    when inserted by the [#login_details#] shortcode are not translated on the received user email.

    Trying to manually customize the notification email, avoiding the use of the [#login_details#] shortcode, I’ve detected that the [#reset_link#]shortcode is not sending a reset link in order to reset the user password.

    When using the [#login_details#] shortcode I’m not able to translate via .PO files, but there’s a Reset link inside the generated text:

    “You have requested to reset your password for the following account:

    https://******.com/ (manually hidden)
    Usuario: jordivil (note that “user” string is translated here)

    If this was by mistake, just ignore this email and nothing will happen.

    To reset your password, click the following link and follow the instructions.

    https://***.******.com/restablecer/?key=9WSdT4LZEhv6eELG5bK5&login=jordivil

    How can I achieve that the .po.mo translation filest take effect on notification email?

    Is not the [#reset_link#] shortcode the right one for include a reset link in this notification?

    thanks a lot in advance
    Jordi

    #2568

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    sorry for the late reply, I am afraid I missed your post!

    I have flagged your question for the developers to followup.

    Can you post your site URL and WP Admin in a private reply so we can take a look at the settings?

    Are you using WPML right now?

    #2569

    Jordi Villar
    Buyer
    Post count: 23
    This reply has been marked as private.
    #2570

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    I can see the problem strings in the forget password email.

    This shortcode

    [#reset_link#]

    will only work in the forgot password link email.

    Please post FTP access and also zip up your PO file and attach the zip here and we will check it out.

    Thanks

    #2571

    Jordi Villar
    Buyer
    Post count: 23
    This reply has been marked as private.
    #2573

    Patrik
    Moderator
    Post count: 1971

    Hi Jordi,

    It seems some problems with the mo-po files you have provided. I have regenerated the files and uploaded on your site. Please review it and let me know if it works fine or not. Also, I have renamed old files for the backup which you can download and then remove from site.

    How can I modify/customize the generated text by the [#login_details#] shortcode?

    You want to translate or change the text content?

    Regards,
    Patrik

    #2577

    Jordi Villar
    Buyer
    Post count: 23

    Hi!!
    The translation works fine now, thank you

    I would like to know what was the problem. My PO-MO files were generated by PoEdit editor. It scans the entire plugin in order to generate a translatable strings catalog, and I presume that this editor is so prestigious for this work.

    Could you confirm that the [#reset_link#] shortcode is not ready to work in Forgot Passwordemail notification? Where is it applicable?

    I’d like to customize the text (and style) generated by the [#login_details#] shortcode.

    thank you
    Jordi

    #2578

    Patrik
    Moderator
    Post count: 1971

    Hi Jordi,

    I have regenerated files from the loco translate and it worked fine.

    [#reset_link#] shortcode will work in forgot password mail content only.

    Right now there is no filter to modify the output content of [#login_details#]. It can be possible with the help of the developer if you want to do it by removing plugin’s action and create your own action and handle the things.

    Let me know if you have any questions.

    Regards,
    Patrik

    #2583

    Jordi Villar
    Buyer
    Post count: 23

    Hi!
    I’m sorry, the translation is not working fine yet

    with the Loco Translate generated po-mo files, the string

    “An email has been sent to your registered email address. Please click the activation link to proceed. Resend.”

    do not display the translated string

    Looking in the po file, this string is:

    
    
    #: includes/class-forms.php:416
    msgid ""
    "An email has been sent to your registered email address. Please click the "
    "activation link to proceed. <a href=\""
    msgstr ""
    "Se ha enviado un correo electrónico a su dirección de correo electrónico "
    "registrada. Por favor haz clic en el enlace de activación para proceder. < "
    "un href = \""

    The line 416 on class-forms.php is:

    return __('An email has been sent to your registered email address. Please click the activation link to proceed. <a href="'.$resend_link.'">Resend</a>', 'userswp');

    Jordi

    #2584

    Jordi Villar
    Buyer
    Post count: 23

    (Previous post rectified)

    #2588

    Patrik
    Moderator
    Post count: 1971

    Hi Jordi,

    Thanks for pointing this. We have made changes on your site. You can regenerate the .mo and .po file and let me know if it works fine or not. We will update this changes in next plugin update.

    Regards,
    Patrik

    #2864

    Patrik
    Moderator
    Post count: 1971

    Hi,

    We have just released a new update for the UsersWP plugin. So please update the plugin and let me know if it works for you or not.

    Regards,
    Patrik

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket