From 8442ed0ecdbee17c714a36e11116d5b0d93d538c Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 26 Aug 2012 23:17:07 +0200 Subject: [PATCH] i18n for report table title (see #7798) --- code/controllers/ReportAdmin.php | 2 +- lang/en.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/controllers/ReportAdmin.php b/code/controllers/ReportAdmin.php index 18a5cfb2..0eeb6439 100644 --- a/code/controllers/ReportAdmin.php +++ b/code/controllers/ReportAdmin.php @@ -163,7 +163,7 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider { $gridField = new GridField('Reports',false, $this->Reports(), $gridFieldConfig); $columns = $gridField->getConfig()->getComponentByType('GridFieldDataColumns'); $columns->setDisplayFields(array( - 'title' => 'Title', + 'title' => _t('ReportAdmin.ReportTitle', 'Title'), )); $columns->setFieldFormatting(array( 'title' => '$value' diff --git a/lang/en.yml b/lang/en.yml index 8179cff9..2843f388 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -237,6 +237,8 @@ en: REDIRECTTOPAGE: 'A page on your website' SINGULARNAME: 'Redirector Page' YOURPAGE: 'Page on your website' + ReportAdmin: + ReportTitle: Title ReportAdminForm: FILTERBY: 'Filter by' SearchForm: