From 98ba54ec912f092c08a3ed7f58bd43c3e2c5aae4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 26 Aug 2009 20:54:24 +0000 Subject: [PATCH] MINOR More translations for ModelAdmin (#4521, thanks "random-value ") git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@85279 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/ModelAdmin.php | 2 +- templates/Includes/ModelAdmin_left.ss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ModelAdmin.php b/code/ModelAdmin.php index 3d1e424a..3a67e8c3 100644 --- a/code/ModelAdmin.php +++ b/code/ModelAdmin.php @@ -219,7 +219,7 @@ abstract class ModelAdmin extends LeftAndMain { foreach($models as $class => $options) { if(is_numeric($class)) $class = $options; $forms->push(new ArrayData(array ( - 'Title' => (is_array($options) && isset($options['title'])) ? $options['title'] : singleton($class)->singular_name(), + 'Title' => (is_array($options) && isset($options['title'])) ? $options['title'] : singleton($class)->i18n_singular_name(), 'ClassName' => $class, 'Content' => $this->$class()->getModelSidebar() ))); diff --git a/templates/Includes/ModelAdmin_left.ss b/templates/Includes/ModelAdmin_left.ss index 83c4117c..b5450a42 100755 --- a/templates/Includes/ModelAdmin_left.ss +++ b/templates/Includes/ModelAdmin_left.ss @@ -13,7 +13,7 @@ <% if SearchClassSelector = dropdown %>

- Search for: + <% _t('ModelAdmin.SEARCHFOR','Search for:') %>