Replaced $this->getLanguages() by \System::getLanguages()