public function addMessages(Loader $loader) {
        $loader->setParser($this);

        if ($messages = $loader->load()) {
            foreach ($messages as $locale => $strings) {
                if (!empty($this->_messages[$locale])) {
                    $strings = array_merge($this->_messages[$locale], $strings);
                }

                $this->_messages[$locale] = $strings;
            }
        }

        return $this;
    }
public function addMessages(Loader $loader) {
        $loader->setParser($this);

        if ($messages = $loader->load()) {
            foreach ($messages as $locale => $strings) {
                if (!empty($this->_messages[$locale])) {
                    $strings = array_merge($this->_messages[$locale], $strings);
                }

                $this->_messages[$locale] = $strings;
            }
        }

        return $this;
    }
public function addMessages ( Loader $ loader ) { $ loader -> setParser ( $ this ) ; if ( $ messages = $ loader -> load ( ) ) { foreach ( $ messages as $ locale => $ strings ) { if ( ! empty ( $ this -> _messages [ $ locale ] ) ) { $ strings = array_merge ( $ this -> _messages [ $ locale ] , $ strings ) ; } $ this -> _messages [ $ locale ] = $ strings ; } } return $ this ; }
Add a loader that will generate localization messages.

@param \Decoda\Loader $loader
@return \Decoda\Decoda
Add a loader that will generate localization messages .