X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FAim%2FAimPlugin.php;h=e44505b21c7cb6b3a58a93a410cef506925b7243;hb=03657a90e1b3792be2ef0f518da217d4bd9c95df;hp=30da1dbc794dbc8ec9966541d0b12fd543692354;hpb=fa282823d9834d411bf2434be1406d4c2ca09b2c;p=quix0rs-gnu-social.git diff --git a/plugins/Aim/AimPlugin.php b/plugins/Aim/AimPlugin.php index 30da1dbc79..e44505b21c 100644 --- a/plugins/Aim/AimPlugin.php +++ b/plugins/Aim/AimPlugin.php @@ -46,7 +46,6 @@ set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/ext * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @link http://status.net/ */ - class AimPlugin extends ImPlugin { public $user = null; @@ -57,6 +56,7 @@ class AimPlugin extends ImPlugin function getDisplayName() { + // TRANS: Display name. return _m('AIM'); } @@ -66,7 +66,7 @@ class AimPlugin extends ImPlugin return strtolower($screenname); } - function daemon_screenname() + function daemonScreenname() { return $this->user; } @@ -116,13 +116,13 @@ class AimPlugin extends ImPlugin function microiduri($screenname) { - return 'aim:' . $screenname; + return 'aim:' . $screenname; } - function send_message($screenname, $body) + function sendMessage($screenname, $body) { $this->fake_aim->sendIm($screenname, $body); - $this->enqueue_outgoing_raw($this->fake_aim->would_be_sent); + $this->enqueueOutgoingRaw($this->fake_aim->would_be_sent); return true; } @@ -131,24 +131,26 @@ class AimPlugin extends ImPlugin * * @return true if processing completed, false if message should be reprocessed */ - function receive_raw_message($message) + function receiveRawMessage($message) { $info=Aim::getMessageInfo($message); $from = $info['from']; - $user = $this->get_user($from); + $user = $this->getUser($from); $notice_text = $info['message']; - $this->handle_incoming($from, $notice_text); + $this->handleIncoming($from, $notice_text); return true; } function initialize(){ if(!isset($this->user)){ - throw new Exception("must specify a user"); + // TRANS: Exception thrown in AIM plugin when user has not been specified. + throw new Exception(_m('Must specify a user.')); } if(!isset($this->password)){ - throw new Exception("must specify a password"); + // TRANS: Exception thrown in AIM plugin when password has not been specified. + throw new Exception(_m('Must specify a password.')); } $this->fake_aim = new Fake_Aim($this->user,$this->password,4); @@ -162,8 +164,8 @@ class AimPlugin extends ImPlugin 'author' => 'Craig Andrews', 'homepage' => 'http://status.net/wiki/Plugin:AIM', 'rawdescription' => + // TRANS: Plugin description. _m('The AIM plugin allows users to send and receive notices over the AIM network.')); return true; } } -