Skip to content

Commit

Permalink
Merge pull request #1031 from chrometoasters/pulls/1030-translations-…
Browse files Browse the repository at this point in the history
…dot-fix

FIX Add missing dots in translation string references
  • Loading branch information
Garion Herman authored Dec 10, 2020
2 parents 8f358be + 66bbe44 commit 7f0e24c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/Model/EditableFormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function getCMSFields()
$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;
}
Expand Down
2 changes: 1 addition & 1 deletion code/Model/EditableFormField/EditableTextField.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function validate()

if ($this->MinLength > $this->MaxLength) {
$result->addError(_t(
__CLASS__ . 'MINMAXLENGTHCHECK',
__CLASS__ . '.MINMAXLENGTHCHECK',
'Minimum length should be less than the Maximum length.'
));
}
Expand Down

0 comments on commit 7f0e24c

Please sign in to comment.