This topic has 10 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #200562
     lusien
    Participant

    Good evening,

    There is an issue with the translation of the reset password email, because first sentence is not translated. See attached an example (resetPassword_BUG.jpg). After looking more into details, I remarked that the wordpress text changed for this part and because it does not match with what you have added into functions.php it will not get translated.

    In WordPress the text is “Someone has requested a password reset for the following account:”

    In the theme functions.php the text for reset password email is: “Someone requested that the password be reset for the following account:”.

    Because they do not match the text is not translated and if you use as different language as English this gets really funny for the user requesting the password reset. After I changed the text in functions.php problem got fixed (see resetPassword_CORRECTED.JPG).

    It will be nice if you consider to fix it for the future.

    Thanks.

     

     

     

     

    For now I have changed the functions. p

     

    Attachments:
    You must be logged in to view attached files.
    #200597
     Laura
    Moderator

    Hello, at functions.php? Have you tried using Loco Translate plugin? This plugin allows you to change theme and plugin strings just install it and you may need to translate the theme and also buddypress plugin as this mostly comes from it

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #200665
     lusien
    Participant

    Hi Laura,

    The way I saw it works it is in this specific case not standard. The reset password email actually is triggered by WordPress itself. And there is a standard text which is translated in Loco translate for this and WordPress. However, the English text does not match with what the text used in theme function.php file where this function is referenced – there is a lost password function in functions.php of the theme where this text is hardcoded. Attached a screen shot of the text I had to change to make it work as designed.

    Please root this to the technical team (Radu for example), they will probably know what I mean.

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #200688
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #200733
     Radu
    Moderator

    Hi,

    Replace this file content : wp-content/themes/sweetdate/functions.php

    With this one : https://pastebin.com/raw/nCVVXH1P

    Sync again the loco translate and they should appear.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #200834
     lusien
    Participant

    Hi Radu,

    Does the functions.php from the pastebin above contain the correction that you have applied for my other issue with Captcha? As of now, I have already an updated functions.php, I am just concerned that with the new file one issue will be fixed, but the other will reappear.

    Or can you highlight to me what needs to be updated (if not a lot)?

    Thanks for letting me know.

    Regards,
    Luciana

    #200893
     Radu
    Moderator

    Yes it should contain that.

    The current file for replacement it handles the hardcoded strings.

    So on the places where are strings and they are not thought translation function and they are but they don’t have the domain added it should be added.

    It’s sufficient just to replace it.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #201052
     lusien
    Participant

    Hi Radu,

    Thanks, I have updated that part of code with the domain reference and after synchronizing in Loco the strings appeared to be translated and translation worked as expected.

    I’ll mark the issue resolved. Hope you will keep this update for your next release so that with the future updates of the theme this improvement will not be lost.

    Regards.

    #201178
     Radu
    Moderator

    I had committed the fix to the repository and it should be included in the update.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #201184
     lusien
    Participant
    This reply has been set as private.
    #201238
     Radu
    Moderator

    O zi buna
    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?