mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
mvc: translate base field error
Without gettext() wrapping we never produce a string in the translation for it. It gets passed to gettext() twice then but that is matters not as the target string cannot be translated again when called a second time.
This commit is contained in:
parent
f70b71ce12
commit
edb286cf6a
@ -68,7 +68,7 @@ abstract class BaseListField extends BaseField
|
||||
protected function getValidationMessage()
|
||||
{
|
||||
if ($this->internalValidationMessage == null) {
|
||||
return "option not in list";
|
||||
return gettext('option not in list');
|
||||
} else {
|
||||
return $this->internalValidationMessage;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user