• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/index/pathindexcollection.php
  • Класс: BitrixTranslateIndexPathIndexCollection
  • Вызов: PathIndexCollection::configure
static function configure()
{
	self::$documentRoot = rtrim(TranslateIOPath::tidy(MainApplication::getDocumentRoot()), '/');

	self::$enabledLanguages = TranslateConfig::getEnabledLanguages();
	self::$availableLanguages = TranslateConfig::getAvailableLanguages();

	self::$useTranslationRepository = MainLocalizationTranslation::useTranslationRepository();
	if (self::$useTranslationRepository)
	{
		self::$translationRepositoryLanguages = TranslateConfig::getTranslationRepositoryLanguages();
		self::$translationRepositoryRoot = rtrim(MainLocalizationTranslation::getTranslationRepositoryPath(), '/');

		// only active languages
		self::$translationEnabledLanguages = array_intersect(self::$translationRepositoryLanguages, self::$enabledLanguages);
	}
}