mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Making ModelAdmin labels in left panel translatable again (regression from moving them into one common panel)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65336 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f72f2b4dd0
commit
85daead336
@ -333,11 +333,12 @@ class ModelAdmin_CollectionController extends Controller {
|
||||
if (!singleton($modelName)->canCreate(Member::currentUser())) return false;
|
||||
}
|
||||
|
||||
$buttonLabel = sprintf(_t('ModelAdmin.CREATEBUTTON', "Create a %s", PR_MEDIUM, "Create a new instance from a model class"), singleton($modelName)->i18n_singular_name());
|
||||
$buttonLabel = sprintf(_t('ModelAdmin.CREATEBUTTON', "Create '%s'", PR_MEDIUM, "Create a new instance from a model class"), singleton($modelName)->i18n_singular_name());
|
||||
|
||||
$actions = new FieldSet(
|
||||
new FormAction('add', $buttonLabel)
|
||||
$createButton = new FormAction('add', $buttonLabel)
|
||||
);
|
||||
$createButton->dontEscape = true;
|
||||
|
||||
return new Form($this, "CreateForm", new FieldSet(), $actions);
|
||||
}
|
||||
|
@ -22,13 +22,13 @@
|
||||
|
||||
<% control ModelForms %>
|
||||
<div class="tab" id="{$Form.Name}_$ClassName">
|
||||
<h3>Create</h3>
|
||||
<h3><% _t('ADDLISTING','Add') %></h3>
|
||||
$CreateForm
|
||||
|
||||
<h3>Search</h3>
|
||||
<h3><% _t('SEARCHLISTINGS','Search') %></h3>
|
||||
$SearchForm
|
||||
|
||||
<h3>Import</h3>
|
||||
<h3><% _t('IMPORT_TAB_HEADER', 'Import') %></h3>
|
||||
$ImportForm
|
||||
</div>
|
||||
<% end_control %>
|
||||
|
Loading…
Reference in New Issue
Block a user