Update translator documentation.

Remove superfluous whitespace.
This commit is contained in:
Siebrand Mazeland 2011-06-19 12:07:59 +02:00
parent 9272fcd3ab
commit 46d9df2f8a
1 changed files with 5 additions and 9 deletions

View File

@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class SubscriptionThrottlePlugin extends Plugin class SubscriptionThrottlePlugin extends Plugin
{ {
public $subLimits = array(86400 => 100, public $subLimits = array(86400 => 100,
@ -61,7 +60,6 @@ class SubscriptionThrottlePlugin extends Plugin
* *
* @return boolean hook value * @return boolean hook value
*/ */
function onStartSubscribe($user, $other) function onStartSubscribe($user, $other)
{ {
foreach ($this->subLimits as $seconds => $limit) { foreach ($this->subLimits as $seconds => $limit) {
@ -71,7 +69,8 @@ class SubscriptionThrottlePlugin extends Plugin
$subtime = strtotime($sub->created); $subtime = strtotime($sub->created);
$now = time(); $now = time();
if ($now - $subtime < $seconds) { if ($now - $subtime < $seconds) {
throw new Exception(_m("Too many subscriptions. Take a break and try again later.")); // TRANS: Exception thrown when subscribing too quickly.
throw new Exception(_m('Too many subscriptions. Take a break and try again later.'));
} }
} }
} }
@ -87,7 +86,6 @@ class SubscriptionThrottlePlugin extends Plugin
* *
* @return boolean hook value * @return boolean hook value
*/ */
function onStartJoinGroup($group, $user) function onStartJoinGroup($group, $user)
{ {
foreach ($this->groupLimits as $seconds => $limit) { foreach ($this->groupLimits as $seconds => $limit) {
@ -97,7 +95,8 @@ class SubscriptionThrottlePlugin extends Plugin
$jointime = strtotime($mem->created); $jointime = strtotime($mem->created);
$now = time(); $now = time();
if ($now - $jointime < $seconds) { if ($now - $jointime < $seconds) {
throw new Exception(_m("Too many memberships. Take a break and try again later.")); // TRANS: Exception thrown when joing groups too quickly.
throw new Exception(_m('Too many memberships. Take a break and try again later.'));
} }
} }
} }
@ -113,7 +112,6 @@ class SubscriptionThrottlePlugin extends Plugin
* *
* @return Subscription a subscription or null * @return Subscription a subscription or null
*/ */
private function _getNthSub($user, $n) private function _getNthSub($user, $n)
{ {
$sub = new Subscription(); $sub = new Subscription();
@ -137,7 +135,6 @@ class SubscriptionThrottlePlugin extends Plugin
* *
* @return Group_member a membership or null * @return Group_member a membership or null
*/ */
private function _getNthMem($user, $n) private function _getNthMem($user, $n)
{ {
$mem = new Group_member(); $mem = new Group_member();
@ -160,7 +157,6 @@ class SubscriptionThrottlePlugin extends Plugin
* *
* @return boolean hook value * @return boolean hook value
*/ */
function onPluginVersion(&$versions) function onPluginVersion(&$versions)
{ {
$versions[] = array('name' => 'SubscriptionThrottle', $versions[] = array('name' => 'SubscriptionThrottle',
@ -168,8 +164,8 @@ class SubscriptionThrottlePlugin extends Plugin
'author' => 'Evan Prodromou', 'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:SubscriptionThrottle', 'homepage' => 'http://status.net/wiki/Plugin:SubscriptionThrottle',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description.
_m('Configurable limits for subscriptions and group memberships.')); _m('Configurable limits for subscriptions and group memberships.'));
return true; return true;
} }
} }