Index: index.php =================================================================== --- index.php (revision 38214) +++ index.php (working copy) @@ -492,10 +492,11 @@ $indexTO = ''; $toList = $toRepo->getTemplatesByDatastructure($dsObj); + + $newPid = $dsObj->getKey(); + $newFileRef = ''; + $newTitle = $dsObj->getLabel() . ' [TEMPLATE]'; if (count($toList)) { - $newPid = $dsObj->getKey(); - $newFileRef = ''; - $newTitle = $dsObj->getLabel() . ' [TEMPLATE]'; foreach($toList as $toObj) { $toIdArray[] = $toObj->getKey(); if ($toObj->hasParentTemplate()) { @@ -523,15 +524,14 @@ if (is_null($newPid)) { $newPid = t3lib_div::_GP('id'); } - - // New-TO link: - $TOcontent.= '' . tx_templavoila_icons::getIcon('actions-document-new') .'Create new Template Object'; } + // New-TO link: + $TOcontent.= '' . tx_templavoila_icons::getIcon('actions-document-new') . $GLOBALS['LANG']->getLL('createnewto', 1) . ''; // Render data structure display $rDSDres = $this->renderDataStructureDisplay($dsObj, $scope, $toIdArray); Index: locallang.xml =================================================================== --- locallang.xml (revision 38077) +++ locallang.xml (working copy) @@ -38,6 +38,7 @@ +