From 96a0899fc3067da9162357810c989a51a0d9b82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albrecht=20K=C3=B6hnlein?= Date: Thu, 6 Feb 2025 10:48:10 +0100 Subject: [PATCH] [BUGFIX] Make custom DataHandler command in select boxes In commit 0d4bc00bd813440cc2fb023d0012c5def592cc78 a custom DataHandler command was introduced for DeepL translations. This bugfix updates the "Translate with DeepL" select boxes in page module and list module to create translation records of pages. --- Classes/Form/TranslationDropdownGenerator.php | 5 +++-- .../Backend/Partials/AdditionalTranslation/DeeplDefault.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Classes/Form/TranslationDropdownGenerator.php b/Classes/Form/TranslationDropdownGenerator.php index 8e128cc3..c5285e85 100644 --- a/Classes/Form/TranslationDropdownGenerator.php +++ b/Classes/Form/TranslationDropdownGenerator.php @@ -91,8 +91,9 @@ public function buildTranslateDropdownOptions( $redirectUrl = DeeplBackendUtility::buildBackendRoute('record_edit', $parameters); $params = []; $params['redirect'] = $redirectUrl; - $params['cmd']['pages'][$id]['localize'] = $languageUid; - $params['cmd']['localization']['custom']['mode'] = 'deepl'; + //$params['cmd']['pages'][$id]['localize'] = $languageUid; + //$params['cmd']['localization']['custom']['mode'] = 'deepl'; + $params['cmd']['pages'][$id]['deepltranslate'] = $languageUid; $targetUrl = DeeplBackendUtility::buildBackendRoute('tce_db', $params); $output .= ''; } diff --git a/Resources/Private/Backend/Partials/AdditionalTranslation/DeeplDefault.html b/Resources/Private/Backend/Partials/AdditionalTranslation/DeeplDefault.html index 838e0521..272a86dd 100644 --- a/Resources/Private/Backend/Partials/AdditionalTranslation/DeeplDefault.html +++ b/Resources/Private/Backend/Partials/AdditionalTranslation/DeeplDefault.html @@ -23,7 +23,7 @@