mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
ENH move OnCompleteMessage from $defaults to populateDefaults() for translations
add double backslashes, fix typo as requested by michalkleiner
This commit is contained in:
parent
1637a29cb4
commit
663bfa6952
@ -110,7 +110,6 @@ trait UserForm
|
|||||||
private static $defaults = [
|
private static $defaults = [
|
||||||
'Content' => '$UserDefinedForm',
|
'Content' => '$UserDefinedForm',
|
||||||
'DisableSaveSubmissions' => 0,
|
'DisableSaveSubmissions' => 0,
|
||||||
'OnCompleteMessage' => '<p>Thanks, we\'ve received your submission.</p>'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -167,6 +166,15 @@ trait UserForm
|
|||||||
*/
|
*/
|
||||||
protected $fieldsFromTo = [];
|
protected $fieldsFromTo = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public function populateDefaults()
|
||||||
|
{
|
||||||
|
parent::populateDefaults();
|
||||||
|
$this->OnCompleteMessage = '<p>' . _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.ONCOMPLETEMESSAGE', 'Thanks, we\'ve received your submission.') . '</p>';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return FieldList
|
* @return FieldList
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user