summaryrefslogtreecommitdiffstats
path: root/lib/Notification/Notifier.php
diff options
context:
space:
mode:
authorMarcel Müller <marcel-mueller@gmx.de>2023-08-09 22:10:47 +0200
committerMarcel Müller <marcel-mueller@gmx.de>2023-08-09 22:12:11 +0200
commit3cce112c56b2c80bfe5ddb5881e1aba53b86c590 (patch)
tree7343cb27f64146a832817f74f16913a974c1e157 /lib/Notification/Notifier.php
parentbf61c4af0d0089b621642a358100ac876e86712f (diff)
Add notes for translators for reminder feature
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
Diffstat (limited to 'lib/Notification/Notifier.php')
-rw-r--r--lib/Notification/Notifier.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php
index b91b4b9a5..d3797459a 100644
--- a/lib/Notification/Notifier.php
+++ b/lib/Notification/Notifier.php
@@ -544,18 +544,24 @@ class Notifier implements INotifier {
];
if ($notification->getSubject() === 'reminder') {
if ($comment->getActorId() === $notification->getUser()) {
+ // TRANSLATORS Reminder for a message you sent in the conversation {call}
$subject = $l->t('Reminder: You in {call}') . "\n{message}";
} elseif ($room->getType() === Room::TYPE_ONE_TO_ONE || $room->getType() === Room::TYPE_ONE_TO_ONE_FORMER) {
+ // TRANSLATORS Reminder for a message from {user} in conversation {call}
$subject = $l->t('Reminder: {user} in {call}') . "\n{message}";
} elseif ($richSubjectUser) {
+ // TRANSLATORS Reminder for a message from {user} in conversation {call}
$subject = $l->t('Reminder: {user} in {call}') . "\n{message}";
} elseif (!$isGuest) {
+ // TRANSLATORS Reminder for a message from a deleted user in conversation {call}
$subject = $l->t('Reminder: Deleted user in {call}') . "\n{message}";
} else {
try {
$richSubjectParameters['guest'] = $this->getGuestParameter($room, $comment->getActorId());
+ // TRANSLATORS Reminder for a message from a guest in conversation {call}
$subject = $l->t('Reminder: {guest} (guest) in {call}') . "\n{message}";
} catch (ParticipantNotFoundException $e) {
+ // TRANSLATORS Reminder for a message from a guest in conversation {call}
$subject = $l->t('Reminder: Guest in {call}') . "\n{message}";
}
}