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
|
||||
*/
|
||||
static $site_tree_filter_options = array(
|
||||
'ClassName' => 'Page Type',
|
||||
'Status' => 'Status',
|
||||
'MetaDescription' => 'Description',
|
||||
'MetaKeywords' => 'Keywords'
|
||||
'ClassName' => array('CMSMain.PAGETYPE', 'Page Type'),
|
||||
'Status' => array('CMSMain.STATUS', 'Status'),
|
||||
'MetaDescription' => array('CMSMain.METADESC', 'Description'),
|
||||
'MetaKeywords' => array('CMSMain.METAKEYWORDS', 'Keywords')
|
||||
);
|
||||
|
||||
public function init() {
|
||||
@ -81,7 +81,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
foreach(self::$site_tree_filter_options as $key => $value) {
|
||||
$record = array(
|
||||
'Column' => $key,
|
||||
'Title' => $value,
|
||||
'Title' => _t($value[0], $value[1])
|
||||
);
|
||||
$filter_options->push(new ArrayData($record));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user