We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28626
    • 87 Posts
    I need to subject of the forgotpassword email to be localized but I can’t find where to do that.

    from the code it should take the localized settings

    $_lang['login.forgot_password_email_subject'] = 'Nieuw wachtwoord';


    but it doesn’t this seems like a bug.

    Even overwriting the english sentense in the lexicon manager doesn’t change anything I guess it must be hardcoded somewhere.

    I hardcoded it into the file and still get it in english, cleared cache and everything too.

             //$subject = !empty($emailSubject) ? $emailSubject : $modx->getOption('login.forgot_password_email_subject',$scriptProperties,$modx->lexicon('login.forgot_password_email_subject'));
            $subject = 'Nieuw wachtwoord';
            $Login->sendEmail($user->get('email'),$user->get('username'),$subject,$emailProperties);   
    


    This is impossible right??? scratching my head here