Skip to content
This repository
Browse code

Localized CMS breadcrumbs title

  • Loading branch information...
commit abc87a4f8f8b06424711083bf08f131cc1413ca1 1 parent d75a061
Ingo Schommer authored July 18, 2012
3  code/controllers/CMSMain.php
@@ -318,7 +318,8 @@ public function Breadcrumbs($unlinked = false) {
318 318
 
319 319
 		// The root element should point to the pages tree view,
320 320
 		// rather than the actual controller (which would just show an empty edit form)
321  
-		$items[0]->Title = self::menu_title_for_class('CMSPagesController');
  321
+		$defaultTitle = self::menu_title_for_class('CMSPagesController');
  322
+		$items[0]->Title = _t("{$this->class}.MENUTITLE", $defaultTitle);
322 323
 		$items[0]->Link = singleton('CMSPagesController')->Link();
323 324
 
324 325
 		return $items;
3  code/controllers/CMSSettingsController.php
@@ -64,9 +64,10 @@ function LinkPreview() {
64 64
 	}
65 65
 
66 66
 	function Breadcrumbs($unlinked = false) {
  67
+		$defaultTitle = self::menu_title_for_class(get_class($this));
67 68
 		return new ArrayList(array(
68 69
 			new ArrayData(array(
69  
-				'Title' => $this->SectionTitle(),
  70
+				'Title' => _t("{$this->class}.MENUTITLE", $defaultTitle),
70 71
 				'Link' => false
71 72
 			))
72 73
 		));

0 notes on commit abc87a4

Please sign in to comment.
Something went wrong with that request. Please try again.