Add translation to "Submitter" field label

This commit is contained in:
Robbie Averill 2018-08-15 16:42:14 +12:00
parent ba9bbfaed5
commit 075985d9c9

View File

@ -89,7 +89,7 @@ class SubmittedForm extends DataObject
//replace scaffolded field with readonly submitter
$fields->replaceField(
'SubmittedByID',
ReadonlyField::create('Submitter', 'Submitter', $submitter)
ReadonlyField::create('Submitter', _t(__CLASS__ . '.SUBMITTER', 'Submitter'), $submitter)
->addExtraClass('form-field--no-divider')
);