diff --git a/Classes/Override/CommandMapPostProcessingHook.php b/Classes/Override/CommandMapPostProcessingHook.php index d67dd556..0467d243 100644 --- a/Classes/Override/CommandMapPostProcessingHook.php +++ b/Classes/Override/CommandMapPostProcessingHook.php @@ -4,7 +4,7 @@ namespace WebVision\Deepltranslate\Core\Override; -use B13\Container\Domain\Factory\Exception; +use B13\Container\Domain\Factory\Exception as B13ContainerFactoryException; use TYPO3\CMS\Core\DataHandling\DataHandler; use TYPO3\CMS\Core\Utility\GeneralUtility; @@ -31,7 +31,7 @@ protected function localizeOrCopyToLanguage(int $uid, int $language, string $com $localDataHandler->start([], $cmd, $dataHandler->BE_USER); $localDataHandler->process_cmdmap(); } - } catch (Exception $e) { + } catch (B13ContainerFactoryException) { // exception is expected, if CE is not a container } } diff --git a/Resources/Private/Backend/Partials/PageLayout/LanguageColumns.html b/Resources/Private/Backend/Partials/PageLayout/LanguageColumns.html index d938483a..a51f8963 100644 --- a/Resources/Private/Backend/Partials/PageLayout/LanguageColumns.html +++ b/Resources/Private/Backend/Partials/PageLayout/LanguageColumns.html @@ -12,7 +12,7 @@ default="{f:render(partial: 'AdditionalTranslation/DeeplDefault', arguments: '{_all}')}" /> - +
diff --git a/Resources/Public/JavaScript/Localization11.js b/Resources/Public/JavaScript/Localization11.js deleted file mode 100644 index c53e1bd6..00000000 --- a/Resources/Public/JavaScript/Localization11.js +++ /dev/null @@ -1,568 +0,0 @@ -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * Module: TYPO3/CMS/WvDeepltranslate/Localization11 - * UI for localization workflow. - */ -define('TYPO3/CMS/WvDeepltranslate/Localization11', [ - 'jquery', - 'TYPO3/CMS/Backend/AjaxDataHandler', - 'TYPO3/CMS/Backend/Wizard', - 'TYPO3/CMS/Backend/Icons', - 'TYPO3/CMS/Backend/Severity', - 'bootstrap', -], function ($, DataHandler, Wizard, Icons, Severity) { - 'use strict' - - /** - * @type {{identifier: {triggerButton: string}, actions: {translate: $, copy: $}, settings: {}, records: []}} - * @exports TYPO3/CMS/Backend/Localization - */ - var Localization = { - identifier: { - triggerButton: '.t3js-localize', - }, - actions: { - translate: $('