$form->addError('error');
$form['input']->addError('error');$errors = array_unique(array_merge($this->errors, parent::getErrors());
if ($this->getTranslator()) {
$translatedErrors = array();
foreach ($errorsas$error) {
$translatedErrors[] = $this->getTranslator()->translate($error);
}
$errors = $translatedErrors;
}
return$errors;
Neither of those messages are translated:
I'd suggest modify
getErrors()in bothFormandBaseControl:with something like this: