*/
final class ReportModerationQueueUserNotificationEvent extends AbstractUserNotificationEvent
{
- /**
- * @inheritDoc
- */
+ #[\Override]
public function getTitle(): string
{
- // TODO
- return "";
+ return $this->getLanguage()->get('wcf.moderation.report.notification.title');
}
- /**
- * @inheritDoc
- */
+ #[\Override]
public function getMessage()
{
- // TODO
- return "";
+ return $this->getLanguage()->getDynamicVariable(
+ 'wcf.moderation.report.notification.message',
+ [
+ 'author' => $this->author,
+ 'notification' => $this->notification,
+ 'userNotificationObject' => $this->getUserNotificationObject(),
+ ]
+ );
}
- /**
- * @inheritDoc
- */
+ #[\Override]
public function getEmailMessage($notificationType = 'instant')
{
// TODO
}
- /**
- * @inheritDoc
- */
+ #[\Override]
public function getLink(): string
{
return LinkHandler::getInstance()->getLink('ModerationReport', [
]);
}
- /**
- * @inheritDoc
- */
+ #[\Override]
public function getEventHash()
{
return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->queueID);
*/
protected static $baseClass = ModerationQueue::class;
- /**
- * @inheritDoc
- */
+ #[\Override]
public function getTitle(): string
{
return '';
}
- /**
- * @inheritDoc
- */
+ #[\Override]
public function getURL()
{
return '';
}
- /**
- * @inheritDoc
- */
+ #[\Override]
public function getAuthorID()
{
return $this->userID;
<item name="wcf.moderation.report.changeJustifiedStatus"><![CDATA[„Berechtigt“-Status ändern]]></item>
<item name="wcf.moderation.report.changeJustifiedStatus.markAsJustified"><![CDATA[Meldung als „Berechtigt“ markieren]]></item>
<item name="wcf.moderation.report.changeJustifiedStatus.confirmMessage"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Willst du{else}Wollen Sie{/if} den „Berechtigt“-Status dieser Meldung wirklich ändern?]]></item>
+ <item name="wcf.moderation.report.notification.title"><![CDATA[Neue Meldung]]></item>
</category>
<category name="wcf.notice">
<item name="wcf.notice.button.dismiss"><![CDATA[Hinweis dauerhaft ausblenden]]></item>
<item name="wcf.moderation.report.changeJustifiedStatus"><![CDATA[Change “Justified” status]]></item>
<item name="wcf.moderation.report.changeJustifiedStatus.markAsJustified"><![CDATA[Mark report as “Justified”]]></item>
<item name="wcf.moderation.report.changeJustifiedStatus.confirmMessage"><![CDATA[Do you really want to change the “Justified” status of this report?]]></item>
+ <item name="wcf.moderation.report.notification.title"><![CDATA[New report]]></item>
</category>
<category name="wcf.notice">
<item name="wcf.notice.button.dismiss"><![CDATA[Permanently dismiss this notice]]></item>