X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FMsn%2Fmsnmanager.php;h=82d40d69c92e80eff7d5e42d51b76b159d75ba82;hb=78a9d4966ec997c0ce6e72eecfadaa53074369c3;hp=0827cb591d1c57f03673b0e76e82cdc262d4b0e8;hpb=6a848bcc8ac37066f7c4941132195d2d67d3b376;p=quix0rs-gnu-social.git diff --git a/plugins/Msn/msnmanager.php b/plugins/Msn/msnmanager.php index 0827cb591d..82d40d69c9 100644 --- a/plugins/Msn/msnmanager.php +++ b/plugins/Msn/msnmanager.php @@ -29,7 +29,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } * In a multi-site queuedaemon.php run, one connection will be instantiated * for each site being handled by the current process that has MSN enabled. */ - class MsnManager extends ImManager { public $conn = null; protected $lastPing = null; @@ -109,7 +108,8 @@ class MsnManager extends ImManager { 'user' => $this->plugin->user, 'password' => $this->plugin->password, 'alias' => $this->plugin->nickname, - 'psm' => 'Send me a message to post a notice', + // TRANS: MSN bot status message. + 'psm' => _m('Send me a message to post a notice'), 'debug' => false ) ); @@ -161,7 +161,7 @@ class MsnManager extends ImManager { * @return boolean */ public function handle_msn_message($data) { - $this->plugin->enqueue_incoming_raw($data); + $this->plugin->enqueueIncomingRaw($data); return true; } @@ -240,7 +240,8 @@ class MsnManager extends ImManager { if (!$result) { common_log_db_error($wm, 'INSERT', __FILE__); - throw new ServerException('DB error inserting queue item'); + // TRANS: Server exception thrown when a message to be sent through MSN cannot be added to the database queue. + throw new ServerException(_m('Database error inserting queue item.')); } return true;