protected function registerMessages(array $messages, $language)
    {
        if (count($messages) > 0) {
            $this->getTranslator()->addLines($messages, $language);
        }

        return $this;
    }
protected function registerMessages(array $messages, $language)
    {
        if (count($messages) > 0) {
            $this->getTranslator()->addLines($messages, $language);
        }

        return $this;
    }
protected function registerMessages ( array $ messages , $ language ) { if ( count ( $ messages ) > 0 ) { $ this -> getTranslator ( ) -> addLines ( $ messages , $ language ) ; } return $ this ; }
Registers messages to the in-memory collection.

@param array $messages
@param string $language

@return $this
Registers messages to the in - memory collection .