mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
Merge pull request #1031 from chrometoasters/pulls/1030-translations-dot-fix
FIX Add missing dots in translation string references
This commit is contained in:
commit
7f0e24cc79
@ -233,7 +233,7 @@ class EditableFormField extends DataObject
|
|||||||
$fieldClasses = $this->getEditableFieldClasses();
|
$fieldClasses = $this->getEditableFieldClasses();
|
||||||
$fields->addFieldsToTab('Root.Main', [
|
$fields->addFieldsToTab('Root.Main', [
|
||||||
DropdownField::create('ClassName', _t(__CLASS__.'.TYPE', 'Type'), $fieldClasses)
|
DropdownField::create('ClassName', _t(__CLASS__.'.TYPE', 'Type'), $fieldClasses)
|
||||||
->setEmptyString(_t(__CLASS__ . 'TYPE_EMPTY', 'Select field type'))
|
->setEmptyString(_t(__CLASS__ . '.TYPE_EMPTY', 'Select field type'))
|
||||||
]);
|
]);
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ class EditableTextField extends EditableFormField
|
|||||||
|
|
||||||
if ($this->MinLength > $this->MaxLength) {
|
if ($this->MinLength > $this->MaxLength) {
|
||||||
$result->addError(_t(
|
$result->addError(_t(
|
||||||
__CLASS__ . 'MINMAXLENGTHCHECK',
|
__CLASS__ . '.MINMAXLENGTHCHECK',
|
||||||
'Minimum length should be less than the Maximum length.'
|
'Minimum length should be less than the Maximum length.'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user