From 564517607f5a6cc24e8e7b04977e0fe7a4407b42 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 24 Jan 2022 04:49:13 +0000 Subject: [PATCH] Notifications for participation added --- .../Notifications/Factory/Notification.php | 23 ++++++++++++- view/lang/C/messages.po | 33 ++++++++++++++----- 2 files changed, 46 insertions(+), 10 deletions(-) diff --git a/src/Navigation/Notifications/Factory/Notification.php b/src/Navigation/Notifications/Factory/Notification.php index 18f4814e56..aa67f2e22d 100644 --- a/src/Navigation/Notifications/Factory/Notification.php +++ b/src/Navigation/Notifications/Factory/Notification.php @@ -140,7 +140,7 @@ class Notification extends BaseFactory implements ICanCreateFromTableRow $title = ''; } - $this->logger->debug('Got verb and type', ['verb' => $Notification->verb, 'type' => $Notification->type]); + $this->logger->info('Got verb and type', ['verb' => $Notification->verb, 'type' => $Notification->type]); switch ($Notification->verb) { case Activity::LIKE: @@ -184,6 +184,27 @@ class Notification extends BaseFactory implements ICanCreateFromTableRow break; } break; + case Activity::ATTEND: + switch ($Notification->type) { + case Post\UserNotification::TYPE_DIRECT_THREAD_COMMENT: + $msg = $userL10n->t('%1$s wants to attend your event %2$s'); + break; + } + break; + case Activity::ATTENDNO: + switch ($Notification->type) { + case Post\UserNotification::TYPE_DIRECT_THREAD_COMMENT: + $msg = $userL10n->t('%1$s does not want to attend your event %2$s'); + break; + } + break; + case Activity::ATTENDMAYBE: + switch ($Notification->type) { + case Post\UserNotification::TYPE_DIRECT_THREAD_COMMENT: + $msg = $userL10n->t('%1$s maybe wants to attends your event %2$s'); + break; + } + break; case Activity::POST: switch ($Notification->type) { case Post\UserNotification::TYPE_EXPLICIT_TAGGED: diff --git a/view/lang/C/messages.po b/view/lang/C/messages.po index 48f4934d0d..22826c03c3 100644 --- a/view/lang/C/messages.po +++ b/view/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 2021.12-rc\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-24 04:13+0000\n" +"POT-Creation-Date: 2022-01-24 04:48+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -10009,45 +10009,60 @@ msgstr "" #: src/Navigation/Notifications/Factory/Notification.php:190 #, php-format +msgid "%1$s wants to attend your event %2$s" +msgstr "" + +#: src/Navigation/Notifications/Factory/Notification.php:197 +#, php-format +msgid "%1$s does not want to attend your event %2$s" +msgstr "" + +#: src/Navigation/Notifications/Factory/Notification.php:204 +#, php-format +msgid "%1$s maybe wants to attends your event %2$s" +msgstr "" + +#: src/Navigation/Notifications/Factory/Notification.php:211 +#, php-format msgid "%1$s tagged you on %2$s" msgstr "" -#: src/Navigation/Notifications/Factory/Notification.php:194 +#: src/Navigation/Notifications/Factory/Notification.php:215 #, php-format msgid "%1$s replied to you on %2$s" msgstr "" -#: src/Navigation/Notifications/Factory/Notification.php:198 +#: src/Navigation/Notifications/Factory/Notification.php:219 #, php-format msgid "%1$s commented in your thread %2$s" msgstr "" -#: src/Navigation/Notifications/Factory/Notification.php:202 +#: src/Navigation/Notifications/Factory/Notification.php:223 #, php-format msgid "%1$s commented on your comment %2$s" msgstr "" -#: src/Navigation/Notifications/Factory/Notification.php:208 +#: src/Navigation/Notifications/Factory/Notification.php:229 #, php-format msgid "%1$s commented in their thread %2$s" msgstr "" -#: src/Navigation/Notifications/Factory/Notification.php:210 +#: src/Navigation/Notifications/Factory/Notification.php:231 #, php-format msgid "%1$s commented in their thread" msgstr "" -#: src/Navigation/Notifications/Factory/Notification.php:212 +#: src/Navigation/Notifications/Factory/Notification.php:233 #, php-format msgid "%1$s commented in the thread %2$s from %3$s" msgstr "" -#: src/Navigation/Notifications/Factory/Notification.php:214 +#: src/Navigation/Notifications/Factory/Notification.php:235 #, php-format msgid "%1$s commented in the thread from %3$s" msgstr "" -#: src/Navigation/Notifications/Factory/Notification.php:219 +#: src/Navigation/Notifications/Factory/Notification.php:240 #, php-format msgid "%1$s commented on your thread %2$s" msgstr "" -- 2.39.5