public function load() {
        if ($this->_loaded) return;
        $factory = HTMLPurifier_LanguageFactory::instance();
        $factory->loadLanguage($this->code);
        foreach ($factory->keys as $key) {
            $this->$key = $factory->cache[$this->code][$key];
        }
        $this->_loaded = true;
    }
public function load() {
        if ($this->_loaded) return;
        $factory = HTMLPurifier_LanguageFactory::instance();
        $factory->loadLanguage($this->code);
        foreach ($factory->keys as $key) {
            $this->$key = $factory->cache[$this->code][$key];
        }
        $this->_loaded = true;
    }
public function load ( ) { if ( $ this -> _loaded ) return ; $ factory = HTMLPurifier_LanguageFactory :: instance ( ) ; $ factory -> loadLanguage ( $ this -> code ) ; foreach ( $ factory -> keys as $ key ) { $ this -> $ key = $ factory -> cache [ $ this -> code ] [ $ key ] ; } $ this -> _loaded = true ; }
Loads language object with necessary info from factory cache
@note This is a lazy loader
Loads language object with necessary info from factory cache