Break lines in README at or before 80 characters.
i18n fixes.
Whitespace updates.
);
$response = $this->mollom('mollom.checkContent', $data);
if ($response['spam'] == MOLLOM_ANALYSIS_SPAM) {
- throw new ClientException(_m("Spam Detected."), 400);
+ // TRANS: Client exception thrown when notice content triggers the spam filter.
+ throw new ClientException(_m('Spam Detected.'), 400);
}
if ($response['spam'] == MOLLOM_ANALYSIS_UNSURE) {
//if unsure, let through
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0\r
* @link http://status.net/\r
*/\r
-\r
class MsnPlugin extends ImPlugin {\r
public $user = null;\r
public $password = null;\r
* @return string Name of service\r
*/\r
public function getDisplayName() {\r
+ // TRANS: Display name of the MSN instant messaging service.\r
return _m('MSN');\r
}\r
\r
*/\r
public function initialize() {\r
if (!isset($this->user)) {\r
- throw new Exception("Must specify a user");\r
+ // TRANS: Exception thrown when configuration for the MSN plugin is incomplete.\r
+ throw new Exception(_m('Must specify a user.'));\r
}\r
if (!isset($this->password)) {\r
- throw new Exception("Must specify a password");\r
+ // TRANS: Exception thrown when configuration for the MSN plugin is incomplete.\r
+ throw new Exception(_m('Must specify a password.'));\r
}\r
if (!isset($this->nickname)) {\r
- throw new Exception("Must specify a nickname");\r
+ // TRANS: Exception thrown when configuration for the MSN plugin is incomplete.\r
+ throw new Exception(_m('Must specify a nickname.'));\r
}\r
\r
return true;\r
'author' => 'Luke Fitzgerald',\r
'homepage' => 'http://status.net/wiki/Plugin:MSN',\r
'rawdescription' =>\r
+ // TRANS: Plugin description.\r
_m('The MSN plugin allows users to send and receive notices over the MSN network.')\r
);\r
return true;\r
array('setting'=>'value', 'setting2'=>'value2', ...);"
to the bottom of your config.php
-scripts/imdaemon.php included with StatusNet must be running. It will be started by
-the plugin along with their other daemons when you run scripts/startdaemons.sh.
-See the StatusNet README for more about queuing and daemons.
+scripts/imdaemon.php included with StatusNet must be running. It will be started
+by the plugin along with their other daemons when you run
+scripts/startdaemons.sh. See the StatusNet README for more about queuing and
+daemons.
Settings
========
'password' => '...',
'nickname' => '...'
));
-
* In a multi-site queuedaemon.php run, one connection will be instantiated\r
* for each site being handled by the current process that has MSN enabled.\r
*/\r
-\r
class MsnManager extends ImManager {\r
public $conn = null;\r
protected $lastPing = null;\r
'user' => $this->plugin->user,\r
'password' => $this->plugin->password,\r
'alias' => $this->plugin->nickname,\r
- 'psm' => 'Send me a message to post a notice',\r
+ // TRANS: MSN bot status message.\r
+ 'psm' => _m('Send me a message to post a notice'),\r
'debug' => false\r
)\r
);\r
\r
if (!$result) {\r
common_log_db_error($wm, 'INSERT', __FILE__);\r
- throw new ServerException('DB error inserting queue item');\r
+ // TRANS: Server exception thrown when a message to be sent through MSN cannot be added to the database queue.\r
+ throw new ServerException(_m('Database error inserting queue item.'));\r
}\r
\r
return true;\r