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