Merge pull request #1031 from chrometoasters/pulls/1030-translations-dot-fix

FIX Add missing dots in translation string references
This commit is contained in:
Garion Herman 2020-12-10 14:36:18 +13:00 committed by GitHub
commit 7f0e24cc79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ class EditableFormField extends DataObject
$fieldClasses = $this->getEditableFieldClasses();
$fields->addFieldsToTab('Root.Main', [
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;
}

View File

@ -112,7 +112,7 @@ class EditableTextField extends EditableFormField
if ($this->MinLength > $this->MaxLength) {
$result->addError(_t(
__CLASS__ . 'MINMAXLENGTHCHECK',
__CLASS__ . '.MINMAXLENGTHCHECK',
'Minimum length should be less than the Maximum length.'
));
}