mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX use the same translation variable key as core (#755)
This way when this translation string overrides the core one, the core triggered translations will still continue working.
This commit is contained in:
parent
20d778bfa6
commit
569b0a7627
@ -806,7 +806,7 @@ class EditableFormField extends DataObject
|
||||
public function getErrorMessage()
|
||||
{
|
||||
$title = strip_tags("'". ($this->Title ? $this->Title : $this->Name) . "'");
|
||||
$standard = _t('SilverStripe\\Forms\\Form.FIELDISREQUIRED', '{field} is required.', ['field' => $title]);
|
||||
$standard = _t('SilverStripe\\Forms\\Form.FIELDISREQUIRED', '{name} is required.', ['name' => $title]);
|
||||
|
||||
// only use CustomErrorMessage if it has a non empty value
|
||||
$errorMessage = (!empty($this->CustomErrorMessage)) ? $this->CustomErrorMessage : $standard;
|
||||
|
@ -22,7 +22,7 @@ en:
|
||||
PLURALNAME: Pages
|
||||
SINGULARNAME: Page
|
||||
SilverStripe\Forms\Form:
|
||||
FIELDISREQUIRED: '{field} is required'
|
||||
FIELDISREQUIRED: '{name} is required'
|
||||
SilverStripe\Forms\GridField\GridField:
|
||||
Filter: Filter
|
||||
ResetFilter: Reset
|
||||
|
Loading…
Reference in New Issue
Block a user