mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
6a209ce8df
commit
98ba54ec91
@ -219,7 +219,7 @@ abstract class ModelAdmin extends LeftAndMain {
|
|||||||
foreach($models as $class => $options) {
|
foreach($models as $class => $options) {
|
||||||
if(is_numeric($class)) $class = $options;
|
if(is_numeric($class)) $class = $options;
|
||||||
$forms->push(new ArrayData(array (
|
$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,
|
'ClassName' => $class,
|
||||||
'Content' => $this->$class()->getModelSidebar()
|
'Content' => $this->$class()->getModelSidebar()
|
||||||
)));
|
)));
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<% if SearchClassSelector = dropdown %>
|
<% if SearchClassSelector = dropdown %>
|
||||||
<p id="ModelClassSelector">
|
<p id="ModelClassSelector">
|
||||||
Search for:
|
<% _t('ModelAdmin.SEARCHFOR','Search for:') %>
|
||||||
<select>
|
<select>
|
||||||
<% control ModelForms %>
|
<% control ModelForms %>
|
||||||
<option value="{$Form.Name}_$ClassName">$Title</option>
|
<option value="{$Form.Name}_$ClassName">$Title</option>
|
||||||
|
Loading…
Reference in New Issue
Block a user