From e5ad6ab87a1f827e4ab8df9b5a9ff9be34de438b Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Tue, 6 Nov 2007 23:28:54 +0000 Subject: [PATCH] SiteTreeFilterOptions needs to be translated git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44392 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 6c71f750..7de0e3ff 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -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)); }