</td>
<td class="columnText columnSubject">
<h3>
- <span class="badge label">{lang}wcf.moderation.type.{@$definitionNames[$entry->objectTypeID]}{/lang}</span>
+ <span class="badge label">{$entry->getLabel()}</span>
<a href="{$entry->getLink()}" class="messageGroupLink">{$entry->getTitle()|tableWordwrap}</a>
</h3>
</div>
<div>
<h3>
- <span class="badge label">{lang}wcf.moderation.type.{@$definitionNames[$queue->objectTypeID]}{/lang}</span>
+ <span class="badge label">{$queue->getLabel()}</span>
<a href="{@$queue->getLink()}">{$queue->getAffectedObject()->getTitle()}</a>
</h3>
<small>{if $queue->getUserProfile()->userID}<a href="{link controller='User' object=$queue->getUserProfile()->getDecoratedObject()}{/link}">{$queue->getAffectedObject()->getUsername()}</a>{else}{$queue->getAffectedObject()->getUsername()}{/if} <span class="separatorLeft">{@$queue->lastChangeTime|time}</span></small>
}
WCF::getTPL()->assign([
- 'queues' => $queues,
- 'definitionNames' => ModerationQueueManager::getInstance()->getDefinitionNamesByObjectTypeIDs()
+ 'queues' => $queues
]);
return [
use wcf\system\cache\runtime\UserProfileRuntimeCache;
use wcf\system\moderation\queue\ModerationQueueManager;
use wcf\system\visitTracker\VisitTracker;
+use wcf\system\WCF;
/**
* Represents a viewable moderation queue entry.
return false;
}
+
+ /**
+ * Returns the label for this queue entry.
+ *
+ * @return string
+ */
+ public function getLabel() {
+ $definition = ObjectTypeCache::getInstance()->getDefinition(ObjectTypeCache::getInstance()->getObjectType($this->objectTypeID)->definitionID);
+
+ if ($definition->definitionName == 'com.woltlab.wcf.moderation.activation' && $this->getAffectedObject()->enableTime) {
+ return WCF::getLanguage()->get('wcf.moderation.type.com.woltlab.wcf.moderation.activation.delayed');
+ }
+
+ return WCF::getLanguage()->get('wcf.moderation.type.'.$definition->definitionName);
+ }
}
'assignedUserID' => $this->assignedUserID,
'availableDefinitions' => $this->availableDefinitions,
'definitionID' => $this->definitionID,
- 'definitionNames' => ModerationQueueManager::getInstance()->getDefinitionNamesByObjectTypeIDs(),
'status' => $this->status
]);
}
<item name="wcf.moderation.type"><![CDATA[Typ]]></item>
<item name="wcf.moderation.type.all"><![CDATA[Alle Einträge]]></item>
<item name="wcf.moderation.type.com.woltlab.wcf.moderation.activation"><![CDATA[Freischaltung]]></item>
+ <item name="wcf.moderation.type.com.woltlab.wcf.moderation.activation.delayed"><![CDATA[Zeitgesteuerte Freischaltung]]></item>
<item name="wcf.moderation.type.com.woltlab.wcf.moderation.report"><![CDATA[Meldung]]></item>
<item name="wcf.moderation.type.com.woltlab.wcf.comment.comment"><![CDATA[Kommentar]]></item>
<item name="wcf.moderation.type.com.woltlab.wcf.comment.response"><![CDATA[Antwort auf Kommentar]]></item>
<item name="wcf.moderation.type"><![CDATA[Type]]></item>
<item name="wcf.moderation.type.all"><![CDATA[All Items]]></item>
<item name="wcf.moderation.type.com.woltlab.wcf.moderation.activation"><![CDATA[Approval]]></item>
+ <item name="wcf.moderation.type.com.woltlab.wcf.moderation.activation.delayed"><![CDATA[Delayed]]></item>
<item name="wcf.moderation.type.com.woltlab.wcf.moderation.report"><![CDATA[Report]]></item>
<item name="wcf.moderation.type.com.woltlab.wcf.comment.comment"><![CDATA[Comment]]></item>
<item name="wcf.moderation.type.com.woltlab.wcf.comment.response"><![CDATA[Comment Reply]]></item>