public function load() {
        $this->dictProvider->setLangsPath($this->path);
        $dict = $this->dictProvider->load($this->getUserLangs());
        $this->loadedLang = $this->dictProvider->getLoadedLang();

        if ($dict === null) {
            throw new CantLoadDictionaryException(CantLoadDictionaryException::NO_MATCHING_FILES);
        }

        $this->setlocale();

        return $dict;
    }
public function load() {
        $this->dictProvider->setLangsPath($this->path);
        $dict = $this->dictProvider->load($this->getUserLangs());
        $this->loadedLang = $this->dictProvider->getLoadedLang();

        if ($dict === null) {
            throw new CantLoadDictionaryException(CantLoadDictionaryException::NO_MATCHING_FILES);
        }

        $this->setlocale();

        return $dict;
    }
public function load ( ) { $ this -> dictProvider -> setLangsPath ( $ this -> path ) ; $ dict = $ this -> dictProvider -> load ( $ this -> getUserLangs ( ) ) ; $ this -> loadedLang = $ this -> dictProvider -> getLoadedLang ( ) ; if ( $ dict === null ) { throw new CantLoadDictionaryException ( CantLoadDictionaryException :: NO_MATCHING_FILES ) ; } $ this -> setlocale ( ) ; return $ dict ; }
Load the dictionary that match the prefered languages.

@return array The associative array of dictionary
@throws CantLoadDictionaryException Thrown when there is no match between languages files and selected languages.
Load the dictionary that match the prefered languages .