From: Marcel Werk
Date: Thu, 18 Feb 2021 10:37:29 +0000 (+0100)
Subject: Simplify phrases for notifications
X-Git-Tag: 5.4.0_Alpha_1~34
X-Git-Url: https://git.stricted.de/?p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git;a=commitdiff_plain;h=d8756572545115e34313a1773cffde9e8d8f19c3
Simplify phrases for notifications
See WoltLab/WCF#3958
---
diff --git a/files/lib/system/user/notification/event/ConversationMessageUserNotificationEvent.class.php b/files/lib/system/user/notification/event/ConversationMessageUserNotificationEvent.class.php
index eac7e7d..c753a8e 100644
--- a/files/lib/system/user/notification/event/ConversationMessageUserNotificationEvent.class.php
+++ b/files/lib/system/user/notification/event/ConversationMessageUserNotificationEvent.class.php
@@ -103,6 +103,7 @@ class ConversationMessageUserNotificationEvent extends AbstractUserNotificationE
return $this->getLanguage()->getDynamicVariable('wcf.user.notification.conversation.message.mail.title', [
'author' => $this->author,
'message' => $this->userNotificationObject,
+ 'conversation' => $this->userNotificationObject->getConversation(),
]);
}
diff --git a/language/de.xml b/language/de.xml
index 415a255..5383a3b 100644
--- a/language/de.xml
+++ b/language/de.xml
@@ -199,7 +199,7 @@
- getTitle()}â [URL:{@$message->getLink()}] geantwortet{if $count == 1 && !$guestTimesTriggered}:{else}.{/if}]]>
- {@$authorList} {if $count == 1 && !$guestTimesTriggered}hat{else}haben{/if} auf die Konversation {$conversation->getTitle()} geantwortet:
]]>
- - username}" hat auf die Konversation "{$message->getConversation()->subject}" geantwortet]]>
+ - getTitle()}" geantwortet]]>
- {$author} hat die Konversation {$conversation->getTitle()} gestartet.]]>
- getTitle()}â [URL:{@$conversation->getLink()}] gestartet:]]>
diff --git a/language/en.xml b/language/en.xml
index b6438bb..d774dfc 100644
--- a/language/en.xml
+++ b/language/en.xml
@@ -199,7 +199,7 @@
- getTitle()}â [URL:{@$message->getLink()}]{if $count == 1 && !$guestTimesTriggered}:{else}.{/if}]]>
- {@$authorList} replied to the conversation {$conversation->getTitle()}:]]>
- - username}" replied to the conversation "{$message->getConversation()->subject}"]]>
+ - getTitle()}"]]>
- {$author} started the conversation {$conversation->getTitle()}.]]>
- getTitle()}â [URL:{@$conversation->getLink()}]:]]>