function prepareInputForUpdate($input) { if ($this->checkBeforeAddorUpdate($input, false)) { return $input; } Session::addMessageAfterRedirect(__("There's already a translation for this field in this language"), true, ERROR); return false; }