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),
|
||||
'rootTitle' => $rootTitle,
|
||||
'extraClass' => $this->getTreeNodeClasses($node),
|
||||
'Title' => sprintf(
|
||||
'(%s: %s) %s',
|
||||
trim(_t('SilverStripe\Admin\LeftAndMain.PAGETYPE', 'Page type'), ' :'),
|
||||
$node->i18n_singular_name(),
|
||||
$node->Title
|
||||
'Title' => _t(
|
||||
self::class . '.PAGETYPE_TITLE',
|
||||
'(Page type: {type}) {title}',
|
||||
[
|
||||
'type' => $node->i18n_singular_name(),
|
||||
'title' => $node->Title,
|
||||
]
|
||||
)
|
||||
];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user