mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
SiteTreeFilterOptions needs to be translated
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44392 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
76923ab9e1
commit
e5ad6ab87a
@ -15,10 +15,10 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
* SiteTree Columns that can be filtered using the the Site Tree Search button
|
* SiteTree Columns that can be filtered using the the Site Tree Search button
|
||||||
*/
|
*/
|
||||||
static $site_tree_filter_options = array(
|
static $site_tree_filter_options = array(
|
||||||
'ClassName' => 'Page Type',
|
'ClassName' => array('CMSMain.PAGETYPE', 'Page Type'),
|
||||||
'Status' => 'Status',
|
'Status' => array('CMSMain.STATUS', 'Status'),
|
||||||
'MetaDescription' => 'Description',
|
'MetaDescription' => array('CMSMain.METADESC', 'Description'),
|
||||||
'MetaKeywords' => 'Keywords'
|
'MetaKeywords' => array('CMSMain.METAKEYWORDS', 'Keywords')
|
||||||
);
|
);
|
||||||
|
|
||||||
public function init() {
|
public function init() {
|
||||||
@ -81,7 +81,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
foreach(self::$site_tree_filter_options as $key => $value) {
|
foreach(self::$site_tree_filter_options as $key => $value) {
|
||||||
$record = array(
|
$record = array(
|
||||||
'Column' => $key,
|
'Column' => $key,
|
||||||
'Title' => $value,
|
'Title' => _t($value[0], $value[1])
|
||||||
);
|
);
|
||||||
$filter_options->push(new ArrayData($record));
|
$filter_options->push(new ArrayData($record));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user