forked from GNUsocial/gnu-social
Fix i18n issues. Cannot use a PHP variable in a gettext messages. Needs to be replaced.
Whitespace updates.
This commit is contained in:
parent
46546ce985
commit
2f3bec5a43
@ -25,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);
|
||||||
}
|
}
|
||||||
@ -79,7 +80,8 @@ class UserInviteReminderHandler extends UserReminderHandler {
|
|||||||
case ($days > 1 && $days < 2):
|
case ($days > 1 && $days < 2):
|
||||||
if (Email_reminder::needsReminder(self::INVITE_REMINDER, $invitation, 1)) {
|
if (Email_reminder::needsReminder(self::INVITE_REMINDER, $invitation, 1)) {
|
||||||
common_log(LOG_INFO, "Sending one day invitation reminder to {$invitation->address}", __FILE__);
|
common_log(LOG_INFO, "Sending one day invitation reminder to {$invitation->address}", __FILE__);
|
||||||
$subject = _m("Reminder - You have been invited to join {$siteName}!");
|
// TRANS: Subject for reminder e-mail. %s is the StatusNet sitename.
|
||||||
|
$subject = sprintf(_m('Reminder - You have been invited to join %s!'),$siteName);
|
||||||
return EmailReminderPlugin::sendReminder(
|
return EmailReminderPlugin::sendReminder(
|
||||||
self::INVITE_REMINDER,
|
self::INVITE_REMINDER,
|
||||||
$invitation,
|
$invitation,
|
||||||
@ -92,7 +94,8 @@ class UserInviteReminderHandler extends UserReminderHandler {
|
|||||||
case ($days > 3 && $days < 4):
|
case ($days > 3 && $days < 4):
|
||||||
if (Email_reminder::needsReminder(self::INVITE_REMINDER, $invitation, 3)) {
|
if (Email_reminder::needsReminder(self::INVITE_REMINDER, $invitation, 3)) {
|
||||||
common_log(LOG_INFO, "Sending three day invitation reminder to {$invitation->address}", __FILE__);
|
common_log(LOG_INFO, "Sending three day invitation reminder to {$invitation->address}", __FILE__);
|
||||||
$subject = _m("Final reminder - you have been invited to join {$siteName}!");
|
// TRANS: Subject for reminder e-mail. %s is the StatusNet sitename.
|
||||||
|
$subject = sprintf(_m('Final reminder - you have been invited to join %s!'),$siteName);
|
||||||
return EmailReminderPlugin::sendReminder(
|
return EmailReminderPlugin::sendReminder(
|
||||||
self::INVITE_REMINDER,
|
self::INVITE_REMINDER,
|
||||||
$invitation,
|
$invitation,
|
||||||
@ -106,5 +109,4 @@ class UserInviteReminderHandler extends UserReminderHandler {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user