- Модуль: translate
- Путь к файлу: ~/bitrix/modules/translate/lib/controller/asset/apply.php
- Класс: BitrixTranslateControllerAssetApply
- Вызов: Apply::__construct
public function __construct($name, MainEngineController $controller, array $config = [])
{
$this->keepField([
'languageId', 'convertEncoding', 'encoding', 'encodingIn', 'encodingOut',
'tmpFolderPath', 'totalFileCount', 'sourceFolderPath', 'targetFolderPath', 'seekPath'
]);
parent::__construct($name, $controller, $config);
self::$useTranslationRepository = MainLocalizationTranslation::useTranslationRepository();
self::$enabledLanguages = TranslateConfig::getEnabledLanguages();
self::$allowedEncodings = TranslateConfig::getAllowedEncodings();
if (self::$useTranslationRepository)
{
self::$translationRepositoryRoot = MainLocalizationTranslation::getTranslationRepositoryPath();
}
}