diff --git a/src/Form/BaseTmgmtActionApproveForm.php b/src/Form/BaseTmgmtActionApproveForm.php index 3434efa..61ce2d7 100644 --- a/src/Form/BaseTmgmtActionApproveForm.php +++ b/src/Form/BaseTmgmtActionApproveForm.php @@ -1,10 +1,5 @@ tempStoreFactory = $temp_store_factory; @@ -243,7 +234,7 @@ abstract class BaseTmgmtActionApproveForm extends ConfirmFormBase { } if ($is_batch && $operations) { $batch = [ - 'title' => t('Downloading from Smartling'), + 'title' => $this->getConfirmText(), 'operations' => $operations, 'finished' => [get_class($this), 'finishBatch'], ]; diff --git a/src/Form/CancelTmgmtActionApproveForm.php b/src/Form/CancelTmgmtActionApproveForm.php index 867bbc9..f03e2e7 100644 --- a/src/Form/CancelTmgmtActionApproveForm.php +++ b/src/Form/CancelTmgmtActionApproveForm.php @@ -1,10 +1,5 @@ t('Are you sure you want to cancel these jobs?'); + } + + /** + * {@inheritdoc} + */ + public function getDescription() { + return $this->t('Canceling can take some time, do not close the browser'); + } + + /** * Processes the sending batch. * * @param array $data diff --git a/src/Form/DeleteTmgmtActionApproveForm.php b/src/Form/DeleteTmgmtActionApproveForm.php index 86ae54c..402bb38 100644 --- a/src/Form/DeleteTmgmtActionApproveForm.php +++ b/src/Form/DeleteTmgmtActionApproveForm.php @@ -1,10 +1,5 @@ t('Are you sure you want to delete these jobs?'); + } + + /** + * {@inheritdoc} + */ + public function getDescription() { + return $this->t('Deleting can take some time, do not close the browser'); } /** diff --git a/src/Form/DownloadTmgmtActionApproveForm.php b/src/Form/DownloadTmgmtActionApproveForm.php index 3037b4c..291529b 100644 --- a/src/Form/DownloadTmgmtActionApproveForm.php +++ b/src/Form/DownloadTmgmtActionApproveForm.php @@ -1,10 +1,5 @@ t('Are you sure you want to download translations for these jobs?'); + } + + /** + * {@inheritdoc} + */ + public function getDescription() { + return $this->t('Downloading can take some time, do not close the browser'); + } + + /** * Processes the sending batch. * * @param array $data diff --git a/src/Form/JobMultiLangForm.php b/src/Form/JobMultiLangForm.php index 5521790..72b254a 100644 --- a/src/Form/JobMultiLangForm.php +++ b/src/Form/JobMultiLangForm.php @@ -143,7 +143,6 @@ class JobMultiLangForm extends JobForm { // For now job file name copied from $job object. // We need to reset and regenerate. - // See tmgmt_smartling_tmgmt_job_presave(). $new_job->set('job_file_name', ''); // We should save job first and only then set state. diff --git a/src/Form/TmgmtExtensionSuitSettingsForm.php b/src/Form/TmgmtExtensionSuitSettingsForm.php index 4933ff0..5c4ba19 100644 --- a/src/Form/TmgmtExtensionSuitSettingsForm.php +++ b/src/Form/TmgmtExtensionSuitSettingsForm.php @@ -1,10 +1,5 @@