src/View/BaseForm.php
public function getMessage($messageId, $params = array())
    {
        $message = isset($this->objectMessages[$messageId]) ? $this->objectMessages[$messageId] : constant($messageId);
        //$message = I18n::getInstance()->translate($message);
        $message = I18n::t($message, $messageId, $this->getModuleName($this->objectName));
        $msg = @vsprintf($message, $params);
        if (!$msg) { //maybe in translation missing some %s can cause it returns null
            $msg = $message;
        }
        return $msg;
    }
public function getMessage($messageId, $params = array())
    {
        $message = isset($this->objectMessages[$messageId]) ? $this->objectMessages[$messageId] : constant($messageId);
        //$message = I18n::getInstance()->translate($message);
        $message = I18n::t($message, $messageId, $this->getModuleName($this->objectName));
        $msg = @vsprintf($message, $params);
        if (!$msg) { //maybe in translation missing some %s can cause it returns null
            $msg = $message;
        }
        return $msg;
    }
Get message, and translate it

@param string $messageId message Id
@param array $params
@return string message string