mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
i18n for campaigns section
This commit is contained in:
parent
a615dae3ac
commit
c94802ea15
@ -464,8 +464,8 @@ JSON;
|
|||||||
'DetailEditForm',
|
'DetailEditForm',
|
||||||
$fields,
|
$fields,
|
||||||
FieldList::create(
|
FieldList::create(
|
||||||
FormAction::create('save', 'Save'),
|
FormAction::create('save', _t('CMSMain.SAVE', 'Save')),
|
||||||
FormAction::create('cancel', 'Cancel')
|
FormAction::create('cancel', _t('LeftAndMain.CANCEL', 'Cancel'))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
// Configure form to respond to validation errors with form schema
|
// Configure form to respond to validation errors with form schema
|
||||||
|
@ -100,6 +100,9 @@ en:
|
|||||||
EMAIL: Email
|
EMAIL: Email
|
||||||
HELLO: Hi
|
HELLO: Hi
|
||||||
PASSWORD: Password
|
PASSWORD: Password
|
||||||
|
ChangeSet:
|
||||||
|
Name: Name
|
||||||
|
State: State
|
||||||
CheckboxField:
|
CheckboxField:
|
||||||
NOANSWER: 'No'
|
NOANSWER: 'No'
|
||||||
YESANSWER: 'Yes'
|
YESANSWER: 'Yes'
|
||||||
@ -334,6 +337,7 @@ en:
|
|||||||
Image_iframe_ss:
|
Image_iframe_ss:
|
||||||
TITLE: 'Image Uploading Iframe'
|
TITLE: 'Image Uploading Iframe'
|
||||||
LeftAndMain:
|
LeftAndMain:
|
||||||
|
CANCEL: Cancel
|
||||||
CANT_REORGANISE: 'You do not have permission to alter Top level pages. Your change was not saved.'
|
CANT_REORGANISE: 'You do not have permission to alter Top level pages. Your change was not saved.'
|
||||||
DELETED: Deleted.
|
DELETED: Deleted.
|
||||||
DropdownBatchActionsDefault: 'Choose an action...'
|
DropdownBatchActionsDefault: 'Choose an action...'
|
||||||
|
@ -346,9 +346,9 @@ class ChangeSet extends DataObject {
|
|||||||
|
|
||||||
public function getCMSFields() {
|
public function getCMSFields() {
|
||||||
$fields = new FieldList();
|
$fields = new FieldList();
|
||||||
$fields->push(TextField::create('Name'));
|
$fields->push(TextField::create('Name', $this->fieldLabel('Name')));
|
||||||
if($this->isInDB()) {
|
if($this->isInDB()) {
|
||||||
$state = ReadonlyField::create('State')
|
$state = ReadonlyField::create('State', $this->fieldLabel('State'))
|
||||||
->setDontEscape(true);
|
->setDontEscape(true);
|
||||||
$fields->push($state); // Escape is done in react
|
$fields->push($state); // Escape is done in react
|
||||||
}
|
}
|
||||||
@ -468,4 +468,12 @@ class ChangeSet extends DataObject {
|
|||||||
);
|
);
|
||||||
return $string;
|
return $string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function fieldLabels($includerelations = true) {
|
||||||
|
$labels = parent::fieldLabels($includerelations);
|
||||||
|
$labels['Name'] = _t('ChangeSet.NAME', 'Name');
|
||||||
|
$labels['State'] = _t('ChangeSet.STATE', 'State');
|
||||||
|
|
||||||
|
return $labels;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user