Bug #22770 » 14545_v2.diff
typo3/sysext/lang/locallang_core.xml (working copy) | ||
---|---|---|
<label index="labels.refreshList">Reload list from server</label>
|
||
<label index="labels.close">Close</label>
|
||
<label index="labels.new">NEW</label>
|
||
<label index="labels.createnew">Create new %s</label>
|
||
<label index="labels.edit">Edit %s</label>
|
||
<label index="labels.addnew">Add new</label>
|
||
<label index="labels.toggleall">Toggle all</label>
|
||
<label index="labels.selected">Selected</label>
|
t3lib/class.t3lib_tceforms.php (working copy) | ||
---|---|---|
$prec = t3lib_BEfunc::getRecordWSOL('pages',$truePid,'title');
|
||
$pageTitle = t3lib_BEfunc::getRecordTitle('pages', $prec, TRUE, FALSE);
|
||
$rLabel = '<em>[PID: ' . $truePid . '] ' . $pageTitle . '</em>';
|
||
|
||
// Fetch translated title of the table
|
||
$tableTitle = $GLOBALS['LANG']->sL($GLOBALS['TCA'][$table]['ctrl']['title']);
|
||
$label = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.createnew', 1);
|
||
$pageTitle = sprintf($label, $tableTitle);
|
||
} else {
|
||
$newLabel = ' <span class="typo3-TCEforms-recUid">['.$rec['uid'].']</span>';
|
||
$rLabel = t3lib_BEfunc::getRecordTitle($table, $rec, TRUE, FALSE);
|
||
$prec = t3lib_BEfunc::getRecordWSOL('pages',$rec['pid'],'title');
|
||
$pageTitle = t3lib_BEfunc::getRecordTitle('pages', $prec, TRUE, FALSE);
|
||
$label = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.edit', 1);
|
||
|
||
// Just take the record title and prepend an edit label.
|
||
$pageTitle = sprintf($label, $rLabel);
|
||
}
|
||
foreach ($arr as $k => $v) {
|