i18n work in the mail handler

This commit is contained in:
Craig Andrews 2010-01-09 19:01:48 -05:00
parent c758b1b1d4
commit 7dde17862a

View File

@ -139,7 +139,7 @@ class MailHandler
$headers['From'] = $to;
$headers['To'] = $from;
$headers['Subject'] = "Command complete";
$headers['Subject'] = _('Command complete');
return mail_send(array($from), $headers, $response);
}
@ -225,7 +225,7 @@ class MailHandler
function unsupported_type($type)
{
$this->error(null, "Unsupported message type: " . $type);
$this->error(null, sprintf(_('Unsupported message type: %s'), $type));
}
function cleanup_msg($msg)