]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
i18n work in the mail handler
authorCraig Andrews <candrews@integralblue.com>
Sun, 10 Jan 2010 00:01:48 +0000 (19:01 -0500)
committerCraig Andrews <candrews@integralblue.com>
Sun, 10 Jan 2010 00:04:53 +0000 (19:04 -0500)
lib/mailhandler.php

index 32a8cd9bc5ab34f5de04fef9071fe49b5f3d161f..85be89f1868540b10e41f232ed9d4cdff82f26e6 100644 (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)