[TASK] Improve TCA of site_errorhandling 87/58187/2
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 5 Sep 2018 06:11:23 +0000 (08:11 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 5 Sep 2018 09:01:03 +0000 (11:01 +0200)
- Localize labels
- Use label_alt to show not only errorCode but also errorHandler

Resolves: #86148
Releases: master
Change-Id: I699117be14d5b2c14f6d9325f7a3f4ecabd1382c
Reviewed-on: https://review.typo3.org/58187
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Richard Haeser <richard@maxserv.com>
Tested-by: Richard Haeser <richard@maxserv.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/backend/Configuration/SiteConfiguration/site_errorhandling.php
typo3/sysext/backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf

index 1b6ebf0..a86e450 100644 (file)
@@ -2,7 +2,9 @@
 
 return [
     'ctrl' => [
-        'label' => 'errorCode',
+        'label' => 'errorHandler',
+        'label_alt' => 'errorCode',
+        'label_alt_force' => true,
         'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.ctrl.title',
         'type' => 'errorHandler',
         'typeicon_column' => 'errorHandler',
@@ -43,11 +45,12 @@ return [
             'config' => [
                 'type' => 'select',
                 'renderType' => 'selectSingle',
+                'required' => true,
                 'items' => [
-                    [' - select an handler type - ', ''],
-                    ['Fluid Template', 'Fluid'],
-                    ['Show Content from Page', 'Page'],
-                    ['PHP Class (must implement the PageErrorHandlerInterface)', 'PHP'],
+                    ['', ''],
+                    ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.fluid', 'Fluid'],
+                    ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.page', 'Page'],
+                    ['LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_errorhandling.errorHandler.php', 'PHP'],
                 ],
             ],
         ],
index 94f38a7..6c0b47e 100644 (file)
                        <trans-unit id="site_errorhandling.errorHandler">
                                <source>How to handle errors</source>
                        </trans-unit>
+                       <trans-unit id="site_errorhandling.errorHandler.fluid">
+                               <source>Fluid Template</source>
+                       </trans-unit>
+                       <trans-unit id="site_errorhandling.errorHandler.page">
+                               <source>Show Content from Page</source>
+                       </trans-unit>
+                       <trans-unit id="site_errorhandling.errorHandler.php">
+                               <source>PHP Class (must implement the PageErrorHandlerInterface)</source>
+                       </trans-unit>
                        <trans-unit id="site_errorhandling.errorFluidTemplate">
                                <source>Fluid Template File</source>
                        </trans-unit>