Merge pull request #11601 from annando/issue-11594
Issue 11594: Ensure to create notifications in the user language
This commit is contained in:
commit
fd48a8c9ab
2 changed files with 37 additions and 31 deletions
|
@ -57,12 +57,14 @@ function removeme_post(App $a)
|
|||
continue;
|
||||
}
|
||||
|
||||
$l10n = DI::l10n()->withLang($admin['language']);
|
||||
|
||||
$email = DI::emailer()
|
||||
->newSystemMail()
|
||||
->withMessage(
|
||||
DI::l10n()->t('[Friendica System Notify]') . ' ' . DI::l10n()->t('User deleted their account'),
|
||||
DI::l10n()->t('On your Friendica node an user deleted their account. Please ensure that their data is removed from the backups.'),
|
||||
DI::l10n()->t('The user id is %d', local_user()))
|
||||
$l10n->t('[Friendica System Notify]') . ' ' . $l10n->t('User deleted their account'),
|
||||
$l10n->t('On your Friendica node an user deleted their account. Please ensure that their data is removed from the backups.'),
|
||||
$l10n->t('The user id is %d', local_user()))
|
||||
->forUser($admin)
|
||||
->withRecipient($admin['email'])
|
||||
->build();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue