mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Translation possible for clear before import
I couldn't figure out why it wouldn't translate...
This commit is contained in:
parent
d6b4606087
commit
f991401a52
@ -354,7 +354,7 @@ abstract class ModelAdmin extends LeftAndMain {
|
|||||||
))->renderWith('ModelAdmin_ImportSpec');
|
))->renderWith('ModelAdmin_ImportSpec');
|
||||||
|
|
||||||
$fields->push(new LiteralField("SpecFor{$modelName}", $specHTML));
|
$fields->push(new LiteralField("SpecFor{$modelName}", $specHTML));
|
||||||
$fields->push(new CheckboxField('EmptyBeforeImport', 'Clear Database before import', false));
|
$fields->push(new CheckboxField('EmptyBeforeImport', _t('ModelAdmin.EMPTYBEFOREIMPORT', 'Clear Database before import'), false));
|
||||||
|
|
||||||
$actions = new FieldList(
|
$actions = new FieldList(
|
||||||
new FormAction('import', _t('ModelAdmin.IMPORT', 'Import from CSV'))
|
new FormAction('import', _t('ModelAdmin.IMPORT', 'Import from CSV'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user