return [];
}
+
+ /**
+ * Returns a human readable list of fields that have positive matches against the
+ * blacklist. If you require the raw field names, please use `getBlacklistMatches()`
+ * instead.
+ *
+ * @return string[]
+ * @since 5.2
+ */
+ public function getBlacklistMatchesTitle() {
+ return array_map(function($field) {
+ return WCF::getLanguage()->get('wcf.user.' . $field);
+ }, $this->getBlacklistMatches());
+ }
}
<item name="wcf.user.articles"><![CDATA[Artikel]]></item>
<item name="wcf.user.status.banned"><![CDATA[Der Benutzer ist gesperrt.]]></item>
<item name="wcf.user.status.isDisabled"><![CDATA[Der Benutzer ist nicht freigeschaltet.]]></item>
- <item name="wcf.user.status.blacklistMatches"><![CDATA[Der Benutzer wurde aufgrund eines Treffers in der Datenbank von „Stop Forum Spam“ automatisch deaktiviert.]]></item>
+ <item name="wcf.user.status.blacklistMatches"><![CDATA[Der Benutzer wurde aufgrund eines Treffers in der Datenbank von „Stop Forum Spam“ automatisch deaktiviert (Übereinstimmungen: {implode glue=', ' from=$user->getBlacklistMatchesTitle() item=matchLabel}{$matchLabel}{/implode}).]]></item>
</category>
<category name="wcf.user.menu">
<item name="wcf.user.menu.community"><![CDATA[Community]]></item>
<item name="wcf.user.articles"><![CDATA[Articles]]></item>
<item name="wcf.user.status.banned"><![CDATA[The user has been banned.]]></item>
<item name="wcf.user.status.isDisabled"><![CDATA[The user has not been approved yet.]]></item>
- <item name="wcf.user.status.blacklistMatches"><![CDATA[The user has been automatically disabled because of matches in the “Stop Forum Spam” database.]]></item>
+ <item name="wcf.user.status.blacklistMatches"><![CDATA[The user has been automatically disabled because of matches in the “Stop Forum Spam” database (Matches: {implode glue=', ' from=$user->getBlacklistMatchesTitle() item=matchLabel}{$matchLabel}{/implode}).]]></item>
</category>
<category name="wcf.user.menu">
<item name="wcf.user.menu.community"><![CDATA[Community]]></item>