Update translator documentation and whitespace.
This commit is contained in:
parent
43f542c3a2
commit
e53e60f782
@ -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 DomainWhitelistPlugin extends Plugin
|
class DomainWhitelistPlugin extends Plugin
|
||||||
{
|
{
|
||||||
function onRequireValidatedEmailPlugin_Override($user, &$knownGood)
|
function onRequireValidatedEmailPlugin_Override($user, &$knownGood)
|
||||||
@ -56,6 +55,7 @@ class DomainWhitelistPlugin extends Plugin
|
|||||||
function onStartAddEmailAddress($user, $email)
|
function onStartAddEmailAddress($user, $email)
|
||||||
{
|
{
|
||||||
if (!$this->matchesWhitelist($email)) {
|
if (!$this->matchesWhitelist($email)) {
|
||||||
|
// TRANS: Exception thrown when an e-mail address does not match the site's domain whitelist.
|
||||||
throw new Exception(_('That email address is not allowed on this site.'));
|
throw new Exception(_('That email address is not allowed on this site.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,7 +104,8 @@ class DomainWhitelistPlugin extends Plugin
|
|||||||
'author' => 'Evan Prodromou',
|
'author' => 'Evan Prodromou',
|
||||||
'homepage' => 'http://status.net/wiki/Plugin:DomainWhitelist',
|
'homepage' => 'http://status.net/wiki/Plugin:DomainWhitelist',
|
||||||
'rawdescription' =>
|
'rawdescription' =>
|
||||||
_m('Restrict domains for email users'));
|
// TRANS: Plugin description.
|
||||||
|
_m('Restrict domains for email users.'));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user