Merge pull request #387 from rasstislav/patch-6

Translation fixes
This commit is contained in:
Daniel Hensby 2016-03-23 19:13:02 +00:00
commit 4dbd35dfb0

View File

@ -36,7 +36,7 @@ class EditableMultipleOptionField extends EditableFormField {
$editableColumns = new GridFieldEditableColumns();
$editableColumns->setDisplayFields(array(
'Title' => array(
'title' => 'Title',
'title' => _t('EditableMultipleOptionField.TITLE', 'Title'),
'callback' => function($record, $column, $grid) {
return TextField::create($column);
}
@ -66,7 +66,7 @@ class EditableMultipleOptionField extends EditableFormField {
$optionsConfig
);
$fields->insertAfter(new Tab('Options'), 'Main');
$fields->insertAfter(new Tab('Options', _t('EditableMultipleOptionField.OPTIONSTAB','Options')), 'Main');
$fields->addFieldToTab('Root.Options', $optionsGrid);
return $fields;