array( 'subject' => sprintf(T('Welcome to %1$s'), bugdar::$options['trackertitle']), 'bodyText' => T('Hi %1$s, Thank you for taking the time to register at %2$s. We look forward to your contributations to making our products better. If you have any questions, please don\'t hesitate to contact the webmaster.') ), // reset password // vars: username, trackertitle, trackerurl, activation id 'password_reset' => array( 'subject' => sprintf(T('%1$s Password Reset'), bugdar::$options['trackertitle']), 'bodyText' => T('Hi %1$s, You requested this lost password email at the %2$s bug tracker. To reset your password, simply click the link below (or paste it into your browser window exactly) and enter a new password. %3$s/login.php?do=recoverpw&activator=%4$s If you did not request this, do not worry as this notice will expire in 24 hours.') ), // account approved and active // vars: username, trackertitle 'account_approved' => array( 'subject' => sprintf(T('Account Approved at %1$s'), bugdar::$options['trackertitle']), 'bodyText' => T('Hi %1$s, Your account was awaiting moderation at %2$s. Today, an administrator approved your registration and you are now able to use the bug tracker fully. If you have any questions, please don\'t hesitate to contact the webmaster.') ), // activation code // vars: username, trackertitle, trackerurl, userid, activationid 'activate_account' => array( 'subject' => sprintf(T('Welcome to %1$s'), bugdar::$options['trackertitle']), 'bodyText' => T('Hi %1$s, Welcome to the %2$s tracker. Before you can begin posting bug reports, you\'ll need to activate your account. To do this, please click this link: %3$s/register.php?do=activate&userid=%4$d&activator=%5$s') ), // bug notification // vars: trackertitle, bug.summary // vars: username, trackertitle, bug.summary, bug.id, trackerurl, parts 'notification' => array( 'subject' => T('%1$s Bug Notification - %2$s'), 'bodyText' => T('Hi %1$s, You are receiving this email because you have opted to get notifications for the %2$s bug tracker. The bug is "%3$s" (id: %4$d) located at %5$s/showreport.php?bugid=%4$d Here are the notices: ################################################################### %5$s ################################################################### If you no longer want to receive email from us, please log into your account and click the "My Controls" tab at the top of the screen to change email preferences. %5$s') ), // assigned to bug // vars 'notice_assigned' => array( 'part' => T('You have been assigned to this bug by %1$s.') ), // unassigned from bug // vars: changer.displayname 'notice_unassigned' => array( 'part' => T('You are no longer assigned to this bug, per %1$s\'s changes.') ), // status change // vars: new, old 'notice_status' => array( 'part' => T('The status of the bug is now "%1$s", from "%2$s".') ), // resolution change // vars: new, old 'notice_resolution' => array( 'part' => T('This bug has been resolved with resolution "%1$s", from "%2$s".') ), // duplicates list change // vars: old, new 'notice_duplicates' => array( 'part' => T('The duplicates list has changed from "%1$s" to "%2$s".') ), // severity change // vars: old, new 'notice_severity' => array( 'part' => T('The severity has been elevated from "%1$s" to "%2$s".') ), // priority change // vars: old, new 'notice_priority' => array( 'part' => T('The priority has been elevatd from "%1$s" to "%2$s".') ), // PCV change // vars: old, new 'notice_product' => array( 'part' => T('The product, component, and version combination has changed from "%1$s" to "%2$s".') ), // new comment // vars: user, date, comment 'notice_comment' => array( 'part' => T('The following comment was added by %1$s on %2$s: ============================================ %3$s ============================================') ), // other change // vars: field, old, new 'notice_other' => array( 'part' => T('The %1$s field changed from "%2$s" to "%3$s".') ), // new attachment // vars: username, filename, description, filesize, obsoletes, trackerurl, attachmentid 'notice_attachment' => array( 'part' => T('%1$s has uploaded a new attachment: ============================================ File name: %2$s Description: %3$s File size: %4$d Bytes Makes obsolete: %5$s View: %6$s/viewattachment.php?attachmentid=%7$d ============================================') ), // new bug // vars: bugid, summary, reporter, product, initial comment 'notice_new_bug' => array( 'part' => T('This bug has been added to the database: ============================================ Bug ID: %1$d Summary: %2$s Reporter: %3$s Product/Component/Version: %4$s Initial report: -------------------------------------------- %5$s -------------------------------------------- ============================================') ), // bug notification // vars: trackertitle, bug.summary // vars: displayname, trackertitle, bug.summary, bug.id, trackerurl, parts 'bug_notification' => array( 'subject' => T('%1$s Bug Notification - %2$s'), 'bodyText' => T('Hi %1$s, You are receiving this email because you have opted to get notifications for the %2$s bug tracker. The bug is "%3$s" (id: %4$d) located at %4$s/showreport.php?bugid=%5$d Here are the notices: ################################################################### %6$s ################################################################### If you no longer want to receive email from us, please log into your account and click the "My Controls" tab at the top of the screen to change email preferences. %4$s') ) ); if (!isset($_emails[$name])) { throw new Exception('Unknown email template "' . $name . '"'); } return $_emails[$name]; } ?>