mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENHANCEMENT Use i18n template for page tree title
This commit is contained in:
parent
0fcff60fb4
commit
87d69ba753
@ -529,11 +529,13 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
'listViewLink' => $this->LinkListViewChildren($node->ID),
|
'listViewLink' => $this->LinkListViewChildren($node->ID),
|
||||||
'rootTitle' => $rootTitle,
|
'rootTitle' => $rootTitle,
|
||||||
'extraClass' => $this->getTreeNodeClasses($node),
|
'extraClass' => $this->getTreeNodeClasses($node),
|
||||||
'Title' => sprintf(
|
'Title' => _t(
|
||||||
'(%s: %s) %s',
|
self::class . '.PAGETYPE_TITLE',
|
||||||
trim(_t('SilverStripe\Admin\LeftAndMain.PAGETYPE', 'Page type'), ' :'),
|
'(Page type: {type}) {title}',
|
||||||
$node->i18n_singular_name(),
|
[
|
||||||
$node->Title
|
'type' => $node->i18n_singular_name(),
|
||||||
|
'title' => $node->Title,
|
||||||
|
]
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user