Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Localized CMS breadcrumbs title

  • Loading branch information...
commit abc87a4f8f8b06424711083bf08f131cc1413ca1 1 parent d75a061
@chillu chillu authored
View
3  code/controllers/CMSMain.php
@@ -318,7 +318,8 @@ public function Breadcrumbs($unlinked = false) {
// 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
3  code/controllers/CMSSettingsController.php
@@ -64,9 +64,10 @@ function LinkPreview() {
}
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
))
));
Please sign in to comment.
Something went wrong with that request. Please try again.