Project

General

Profile

Bug #22770 » 14545_v3.diff

Administrator Admin, 2010-06-07 13:12

View differences:

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.createNewPage">Create new %s</label>
<label index="labels.createNewRecord">Create new %s on page "%s"</label>
<label index="labels.createNewRecordRootLevel">Create new %s on root level</label>
<label index="labels.editPage">Edit %s "%s"</label>
<label index="labels.editRecord">Edit %s "%s" on page "%s"</label>
<label index="labels.editRecordRootLevel">Edit %s "%s" on root level</label>
<label index="labels.rootLevel">root level</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']);
if($table === 'pages') {
$label = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.createNewPage', 1);
$pageTitle = sprintf($label, $tableTitle);
} else {
$label = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.createNewRecord', 1);
if($rec['pid'] == 0) {
$label = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.createNewRecordRootLevel', 1);
}
$pageTitle = sprintf($label, $tableTitle, $pageTitle);
}
} 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);
// Fetch translated title of the table
$tableTitle = $GLOBALS['LANG']->sL($GLOBALS['TCA'][$table]['ctrl']['title']);
if($table === 'pages') {
$label = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.editPage', 1);
// Just take the record title and prepend an edit label.
$pageTitle = sprintf($label, $tableTitle, $rLabel);
} else {
$label = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.editRecord', 1);
$pageTitle = $prec['title'];
if($rec['pid'] == 0) {
$label = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.editRecordRootLevel', 1);
}
// Just take the record title and prepend an edit label.
$pageTitle = sprintf($label, $tableTitle, $rLabel, $pageTitle);
}
}
foreach ($arr as $k => $v) {
(4-4/8)