Update translator documentation.
Whitespace updates.
This commit is contained in:
parent
2f3bec5a43
commit
10600579e0
|
@ -201,9 +201,9 @@ class EmailReminderPlugin extends Plugin
|
|||
'version' => STATUSNET_VERSION,
|
||||
'author' => 'Zach Copley',
|
||||
'homepage' => 'http://status.net/wiki/Plugin:EmailReminder',
|
||||
// TRANS: Plugin description.
|
||||
'rawdescription' => _m('Send email reminders for various things.')
|
||||
);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -48,7 +48,6 @@ class Email_reminder extends Managed_DataObject
|
|||
* @param mixed $v Value to lookup
|
||||
*
|
||||
* @return QnA_Answer object found, or null for no hits
|
||||
*
|
||||
*/
|
||||
function staticGet($k, $v=null)
|
||||
{
|
||||
|
@ -97,6 +96,7 @@ class Email_reminder extends Managed_DataObject
|
|||
if (empty($result)) {
|
||||
common_log_db_error($reminder, 'INSERT', __FILE__);
|
||||
throw new ServerException(
|
||||
// TRANS: Server exception thrown when a reminder record could not be inserted into the database.
|
||||
_m('Database error inserting reminder record.')
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* StatusNet - the distributed open-source microblogging tool
|
||||
*
|
||||
|
@ -26,6 +25,7 @@
|
|||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
|
||||
* @link http://status.net/
|
||||
*/
|
||||
|
||||
if (!defined('STATUSNET')) {
|
||||
exit(1);
|
||||
}
|
||||
|
@ -81,7 +81,8 @@ class UserConfirmRegReminderHandler extends UserReminderHandler {
|
|||
case ($days > 1 && $days < 2):
|
||||
if (Email_reminder::needsReminder(self::REGISTER_REMINDER, $confirm, 1)) {
|
||||
common_log(LOG_INFO, "Sending one day registration confirmation reminder to {$confirm->address}", __FILE__);
|
||||
$subject = _m("Reminder - please confirm your registration!");
|
||||
// TRANS: Subject for reminder e-mail.
|
||||
$subject = _m('Reminder - please confirm your registration!');
|
||||
return EmailReminderPlugin::sendReminder(
|
||||
self::REGISTER_REMINDER,
|
||||
$confirm,
|
||||
|
@ -94,7 +95,8 @@ class UserConfirmRegReminderHandler extends UserReminderHandler {
|
|||
case ($days > 3 && $days < 4):
|
||||
if (Email_reminder::needsReminder(self::REGISTER_REMINDER, $confirm, 3)) {
|
||||
common_log(LOG_INFO, "Sending three day registration confirmation reminder to {$confirm->address}", __FILE__);
|
||||
$subject = _m("Second reminder - please confirm your registration!");
|
||||
// TRANS: Subject for reminder e-mail.
|
||||
$subject = _m('Second reminder - please confirm your registration!');
|
||||
return EmailReminderPlugin::sendReminder(
|
||||
self::REGISTER_REMINDER,
|
||||
$confirm,
|
||||
|
@ -108,7 +110,8 @@ class UserConfirmRegReminderHandler extends UserReminderHandler {
|
|||
case ($days > 7 && $days < 8):
|
||||
if (Email_reminder::needsReminder(self::REGISTER_REMINDER, $confirm, 7)) {
|
||||
common_log(LOG_INFO, "Sending one week registration confirmation reminder to {$confirm->address}", __FILE__);
|
||||
$subject = _m("Final reminder - please confirm your registration!");
|
||||
// TRANS: Subject for reminder e-mail.
|
||||
$subject = _m('Final reminder - please confirm your registration!');
|
||||
return EmailReminderPlugin::sendReminder(
|
||||
self::REGISTER_REMINDER,
|
||||
$confirm,
|
||||
|
@ -122,5 +125,4 @@ class UserConfirmRegReminderHandler extends UserReminderHandler {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* StatusNet - the distributed open-source microblogging tool
|
||||
*
|
||||
|
@ -25,6 +24,7 @@
|
|||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
|
||||
* @link http://status.net/
|
||||
*/
|
||||
|
||||
if (!defined('STATUSNET')) {
|
||||
exit(1);
|
||||
}
|
||||
|
@ -40,7 +40,6 @@ if (!defined('STATUSNET')) {
|
|||
* @link http://status.net/
|
||||
*/
|
||||
class UserReminderHandler extends QueueHandler {
|
||||
|
||||
/**
|
||||
* Send the next email reminder to the confirm address
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user