]> git.mxchange.org Git - friendica.git/commitdiff
Notifications for participation added
authorMichael <heluecht@pirati.ca>
Mon, 24 Jan 2022 04:49:13 +0000 (04:49 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 24 Jan 2022 04:49:13 +0000 (04:49 +0000)
src/Navigation/Notifications/Factory/Notification.php
view/lang/C/messages.po

index 18f4814e5636161f3b1943a96d315fb1595d84e0..aa67f2e22d349c15411d9e0d1e4a80278a6c339e 100644 (file)
@@ -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:
index 48f4934d0d8ad072da6d1ab505a0af7f682964e0..22826c03c3fea49f6db132b9fa956f9e8ac00305 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\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 ""