public function load($langs) {
        // List file names
        $files = $this->listLangFiles();
        $this->loadedLang = null;

        if (empty($files)) {
            throw new CantLoadDictionaryException(CantLoadDictionaryException::NO_DICTIONARY_FILES);
        }

        foreach ($langs as $lang) {
            $loaded = $this->loadMatchingFile($files, $lang);
            $dict = $loaded['dict'];
            $loadedLang = $loaded['lang'];
            if ($dict !== null) {
                $this->loadedLang = $loadedLang;
                return $dict;
            }
        }

        return null;
    }