Commit 9dd31bdc authored by Loparev's avatar Loparev
Browse files

Do not resolve real file path while requesting translation (will be resolved...

Do not resolve real file path while requesting translation (will be resolved by registered stream wrappers)
parent 2a825c38
......@@ -303,12 +303,11 @@ class SmartlingTranslator extends TranslatorPluginBase implements
$upload_params->set('callbackUrl', $this->getCallbackUrl($job));
}
$real_path = \Drupal::service('file_system')->realpath($file->getFileUri());
$file_type = $export_format === 'xlf' ? 'xliff' : $export_format;
$upload_params->setLocalesToApprove($job->getRemoteTargetLanguage());
$api_wrapper->getApi('batch')->uploadBatchFile(
$real_path,
$file->getFileUri(),
$file->getFilename(),
$file_type,
$batch_uid,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment