Added missing language variables
authorMarcel Werk <burntime@woltlab.com>
Thu, 21 Feb 2013 00:30:31 +0000 (01:30 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 21 Feb 2013 00:30:31 +0000 (01:30 +0100)
files/lib/system/log/modification/ConversationModificationLogHandler.class.php
language/de.xml

index 298f0c3a94919077a78421577b099f4621e5334c..f55580b3e99685cb8074cd3ad5658fcd6f202491 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\log\modification;
 use wcf\data\conversation\Conversation;
+use wcf\data\user\UserList;
 
 /**
  * Handles conversation modification logs.
@@ -20,8 +21,19 @@ class ConversationModificationLogHandler extends ModificationLogHandler {
         * @param       array<integer>                          $participantIDs
         */
        public function addParticipants(Conversation $conversation, array $participantIDs) {
+               $participants = array();
+               $userList = new UserList();
+               $userList->setObjectIDs($participantIDs);
+               $userList->readObjects();
+               foreach ($userList as $user) {
+                       $participants[] = array(
+                               'userID' => $user->userID,
+                               'username' => $user->username
+                       );
+               }
+               
                $this->add($conversation, 'addParticipants', array(
-                       'participantIDs' => $participantIDs
+                       'participants' => $participants
                ));
        }
        
index 588f10b0afa3790eac693c5b0b3b1ea40f881caa..6d8ab29bf7bc5c464f2151fd1eecd0e62c1ea2e2 100644 (file)
                <item name="wcf.conversation.label.assignLabels"><![CDATA[Label zuweisen]]></item>
        </category>
        
+       <category name="wcf.conversation.log">
+               <item name="wcf.conversation.log"><![CDATA[Änderungsprotokoll]]></item>
+               <item name="wcf.conversation.log.noEntries"><![CDATA[Es wurden keine Änderungen für diese Konversation protokolliert.]]></item>
+               <item name="wcf.conversation.log.title"><![CDATA[Protokollierte Änderungen]]></item>
+               <item name="wcf.conversation.log.action"><![CDATA[Aktion]]></item>
+               <item name="wcf.conversation.log.time"><![CDATA[Datum]]></item>
+               <item name="wcf.conversation.log.conversation.open"><![CDATA[Konversation geöffnet]]></item>
+               <item name="wcf.conversation.log.conversation.close"><![CDATA[Konversation geschlossen]]></item>
+               <item name="wcf.conversation.log.conversation.addParticipants"><![CDATA[Neue Teilnehmer wurden hinzugefügt: {implode from=$additionalData[participants] item=participant}<a href="{link controller='User' id=$participant[userID] title=$participant[username]}{/link}">{$participant[username]}</a>{/implode}]]></item>
+       </category>
+       
        <category name="wcf.search">
                <item name="wcf.search.type.com.woltlab.wcf.conversation.message"><![CDATA[Konversationen]]></item>
                <item name="wcf.search.object.com.woltlab.wcf.conversation.message"><![CDATA[Konversation]]></item>