X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FAim%2FAimPlugin.php;h=e44505b21c7cb6b3a58a93a410cef506925b7243;hb=cb183359e23ae7a5cfb483fa06c6c4b7a8b05fff;hp=3a1799a2d81aae4eabb87302238167473d3158ce;hpb=3593f3f1323bfce289bc9805629f7d126dac7ae6;p=quix0rs-gnu-social.git diff --git a/plugins/Aim/AimPlugin.php b/plugins/Aim/AimPlugin.php index 3a1799a2d8..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'); } @@ -116,7 +116,7 @@ class AimPlugin extends ImPlugin function microiduri($screenname) { - return 'aim:' . $screenname; + return 'aim:' . $screenname; } function sendMessage($screenname, $body) @@ -145,10 +145,12 @@ class AimPlugin extends ImPlugin 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; } } -