Localized CMS breadcrumbs title

This commit is contained in:
Ingo Schommer 2012-07-18 13:51:30 +02:00
parent d75a061c6f
commit abc87a4f8f
2 changed files with 4 additions and 2 deletions

View File

@ -318,7 +318,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
// The root element should point to the pages tree view,
// rather than the actual controller (which would just show an empty edit form)
$items[0]->Title = self::menu_title_for_class('CMSPagesController');
$defaultTitle = self::menu_title_for_class('CMSPagesController');
$items[0]->Title = _t("{$this->class}.MENUTITLE", $defaultTitle);
$items[0]->Link = singleton('CMSPagesController')->Link();
return $items;

View File

@ -64,9 +64,10 @@ class CMSSettingsController extends LeftAndMain {
}
function Breadcrumbs($unlinked = false) {
$defaultTitle = self::menu_title_for_class(get_class($this));
return new ArrayList(array(
new ArrayData(array(
'Title' => $this->SectionTitle(),
'Title' => _t("{$this->class}.MENUTITLE", $defaultTitle),
'Link' => false
))
));