/** * Do the actual notification * * @param class $from reminderer * @param class $to reminderee * * @return nothing */ function notify($from, $to) { if ($to->id != $from->id) { if ($to->email) { // TODO common_switch_locale($to->language); // TRANS: Subject for 'reminder' notification email. // TRANS: %s is the sender. $subject = sprintf(_('%s would like to see you post on GNU social'), $from->nickname); $from_profile = $from->getProfile(); // TRANS: Body for 'reminder' notification email. // TRANS: %1$s is the sender's long name, $2$s is the receiver's nickname, // TRANS: %3$s is a URL to post notices at. $body = sprintf(_("%1\$s (%2\$s) is wondering what you are up to " . "these days and is inviting you to post some news.\n\n" . "So let's hear from you :)\n\n" . "%3\$s\n\n" . "Don't reply to this email; it won't get to them."), $from_profile->getBestName(), $from->nickname, common_local_url('all', array('nickname' => $to->nickname))) . mail_footer_block(); common_switch_locale(); $headers = $this->mail_prepare_headers('nudge', $to->nickname, $from->nickname); return mail_to_user($to, $subject, $body, $headers); } } }