mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Localized CMS breadcrumbs title
This commit is contained in:
parent
d75a061c6f
commit
abc87a4f8f
@ -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;
|
||||
|
@ -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
|
||||
))
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user