Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Gieling <github@dartcafe.de>2022-02-13 13:32:16 +0300
committerGitHub <noreply@github.com>2022-02-13 13:32:16 +0300
commitc017eb9e1979f4e0aa238b005468edca2437d2a9 (patch)
tree71ee6d5175a12dfa2eeea9a278979fc0cf99dd15
parent2c3c6e36ec8f1c2848e6bbdd6a8ec1dd453f3f43 (diff)
parentba528eecddd62c97a9a3702b3de9bc244659dc28 (diff)
Merge pull request #2251 from nextcloud/fix/missing-translations
add missing CommentEvent::Add in notification mail
-rw-r--r--lib/Model/Mail/NotificationMail.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Model/Mail/NotificationMail.php b/lib/Model/Mail/NotificationMail.php
index 3b6d6d45..3811df26 100644
--- a/lib/Model/Mail/NotificationMail.php
+++ b/lib/Model/Mail/NotificationMail.php
@@ -26,6 +26,7 @@ namespace OCA\Polls\Model\Mail;
use OCA\Polls\Db\Log;
use OCA\Polls\Db\Subscription;
+use OCA\Polls\Event\CommentEvent;
use OCA\Polls\Event\PollEvent;
use OCA\Polls\Event\OptionEvent;
use OCA\Polls\Event\VoteEvent;
@@ -99,6 +100,7 @@ class NotificationMail extends MailBase {
OptionEvent::CONFIRM => $this->l10n->t('A voting option has been confirmed.'),
OptionEvent::UNCONFIRM => $this->l10n->t('A voting option has been unconfirmed.'),
OptionEvent::DELETE => $this->l10n->t('A voting option has been removed.'),
+ CommentEvent::ADD => $this->l10n->t('%s has left a comment.', [$displayName]),
VoteEvent::SET => $this->l10n->t('%s has voted.', [$displayName]),
];