mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2141 from open-sausages/pulls/4.0/template-page-name
ENHANCEMENT Use i18n template for page tree title
This commit is contained in:
commit
69b2f90c6d
@ -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