[TASK] EXT:form - change naming and icon in new content element wizard 79/53979/2
authorThomas Kieslich <thomas.kieslich@gmail.com>
Thu, 7 Sep 2017 15:04:00 +0000 (17:04 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Fri, 8 Sep 2017 08:34:31 +0000 (10:34 +0200)
Change language labels and move them to ext:form locallang.xlf.
Change the icon to content-form.

Resolves: #81650
Releases: master, 8.7
Change-Id: I1c497b78da92dc589ad9d7a47dde35c5aeba488a
Reviewed-on: https://review.typo3.org/53979
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/form/Configuration/PageTS/modWizards.ts
typo3/sysext/form/Configuration/TCA/Overrides/tt_content.php
typo3/sysext/form/Resources/Private/Language/locallang.xlf

index edcf2c8..61c7c7f 100644 (file)
@@ -2,9 +2,9 @@ mod.wizards.newContentElement.wizardItems.forms {
     show :=addToList(formframework)
     elements {
         formframework {
-            iconIdentifier = content-elements-mailform
-            title = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_mail_title
-            description = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_mail_description
+            iconIdentifier = content-form
+            title = LLL:EXT:form/Resources/Private/Language/locallang.xlf:form_new_wizard_title
+            description = LLL:EXT:form/Resources/Private/Language/locallang:form_new_wizard_description
             tt_content_defValues {
                 CType = form_formframework
             }
index c04d725..8680fff 100644 (file)
@@ -9,6 +9,8 @@ call_user_func(function () {
         'form_formframework'
     );
 
+    $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['form_formframework'] = 'content-form';
+
     $GLOBALS['TCA']['tt_content']['types']['form_formframework']['showitem'] = '
         --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
             --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
@@ -33,6 +35,7 @@ call_user_func(function () {
     \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
         'TYPO3.CMS.Form',
         'Formframework',
-        'Form'
+        'Form',
+        'content-form'
     );
 });
index b852a42..e8db63f 100644 (file)
             <trans-unit id="validation.error.1476396435" xml:space="preserve">
                 <source>Do not fill this field</source>
             </trans-unit>
+            <trans-unit id="form_new_wizard_title" xml:space="preserve">
+                <source>Form</source>
+            </trans-unit>
+            <trans-unit id="form_new_wizard_description" xml:space="preserve">
+                <source>A form allowing website users to submit messages.</source>
+            </trans-unit>
         </body>
     </file>
 </xliff>