Resolved TODO
authorMarcel Werk <burntime@woltlab.com>
Tue, 21 May 2013 14:08:10 +0000 (16:08 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 21 May 2013 14:08:10 +0000 (16:08 +0200)
wcfsetup/install/files/acp/templates/labelGroupAdd.tpl
wcfsetup/install/files/lib/system/label/object/type/LabelObjectTypeContainer.class.php

index 2e86afabdc4d78074a40e074e6ecbc7b0c068aa5..f6517bc104f7cbc6817e4cd592c751ab31f64bed 100644 (file)
@@ -89,7 +89,7 @@
                                                <!-- TODO: Implement boolean option mode -->
                                        {else}
                                                <dl>
-                                                       <dt>objectTypeID = {@$container->getObjectTypeID()}</dt>
+                                                       <dt>{lang}wcf.acp.label.container.{$container->getObjectTypeName()}{/lang}</dt>
                                                        <dd>
                                                                <ul class="container structuredList">
                                                                        {foreach from=$container item=objectType}
index 32061d48f4fc995e7174d09a72f60c4ae0f2e6c6..b76c3957cf9e67a7ed915f5098321c6b4d59630a 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\label\object\type;
+use wcf\data\object\type\ObjectTypeCache;
 
 /**
  * Label object type container.
@@ -73,6 +74,15 @@ class LabelObjectTypeContainer implements \Countable, \Iterator {
                return $this->objectTypeID;
        }
        
+       /**
+        * Returns the object type name.
+        *
+        * @return      string
+        */
+       public function getObjectTypeName() {
+               return ObjectTypeCache::getInstance()->getObjectType($this->getObjectTypeID())->objectType;
+       }
+       
        /**
         * Returns true, if container represents only a boolean option.
         *