private function setupLocale()
 {
     if (Config::useLocale()) {
         $this->locale = new LocaleModel(null, Config::getDefaultLang());
         $this->locale->addDictionary(SystemDictionary::getLexicon());
         $this->locale->addDictionary(Dictionary::getLexicon());
     }
 }