addLanguages($extension); } protected function addLanguages($extension) { $langService = tao_models_classes_LanguageService::singleton(); $dataUsage = new core_kernel_classes_Resource(tao_models_classes_LanguageService::INSTANCE_LANGUAGE_USAGE_DATA); $dataOptions = []; $model = ModelManager::getModel(); foreach ($langService->getAvailableLanguagesByUsage($dataUsage) as $lang) { $langCode = $langService->getCode($lang); $pack = new RdfPack($langCode, $extension); $this->append($pack->getIterator()); } } }