[TASK] Use simple syntax for labels in module registration
[Packages/TYPO3.CMS.git] / typo3 / sysext / setup / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
6 'user',
7 'setup',
8 'after:task',
9 '',
10 array(
11 'routeTarget' => \TYPO3\CMS\Setup\Controller\SetupModuleController::class . '::mainAction',
12 'access' => 'group,user',
13 'name' => 'user_setup',
14 'icon' => 'EXT:setup/Resources/Public/Icons/module-setup.svg',
15 'labels' => 'LLL:EXT:setup/Resources/Private/Language/locallang_mod.xlf'
16 )
17 );
18 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
19 '_MOD_user_setup',
20 'EXT:setup/Resources/Private/Language/locallang_csh_mod.xlf'
21 );
22
23 $GLOBALS['TYPO3_USER_SETTINGS'] = array(
24 'columns' => array(
25 'realName' => array(
26 'type' => 'text',
27 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:beUser_realName',
28 'table' => 'be_users',
29 'csh' => 'beUser_realName'
30 ),
31 'email' => array(
32 'type' => 'email',
33 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:beUser_email',
34 'table' => 'be_users',
35 'csh' => 'beUser_email'
36 ),
37 'emailMeAtLogin' => array(
38 'type' => 'check',
39 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:emailMeAtLogin',
40 'csh' => 'emailMeAtLogin'
41 ),
42 'password' => array(
43 'type' => 'password',
44 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:newPassword',
45 'table' => 'be_users',
46 'csh' => 'newPassword',
47 ),
48 'password2' => array(
49 'type' => 'password',
50 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:newPasswordAgain',
51 'table' => 'be_users',
52 'csh' => 'newPasswordAgain',
53 ),
54 'passwordCurrent' => array(
55 'type' => 'password',
56 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:passwordCurrent',
57 'table' => 'be_users',
58 'csh' => 'passwordCurrent',
59 ),
60 'avatar' => array(
61 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.avatar',
62 'type' => 'avatar',
63 'table' => 'be_users',
64 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
65 ),
66 'lang' => array(
67 'type' => 'select',
68 'itemsProcFunc' => \TYPO3\CMS\Setup\Controller\SetupModuleController::class . '->renderLanguageSelect',
69 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:language',
70 'csh' => 'language'
71 ),
72 'startModule' => array(
73 'type' => 'select',
74 'itemsProcFunc' => \TYPO3\CMS\Setup\Controller\SetupModuleController::class . '->renderStartModuleSelect',
75 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:startModule',
76 'csh' => 'startModule'
77 ),
78 'thumbnailsByDefault' => array(
79 'type' => 'check',
80 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:showThumbs',
81 'csh' => 'showThumbs'
82 ),
83 'titleLen' => array(
84 'type' => 'text',
85 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:maxTitleLen',
86 'csh' => 'maxTitleLen'
87 ),
88 'edit_RTE' => array(
89 'type' => 'check',
90 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:edit_RTE',
91 'csh' => 'edit_RTE'
92 ),
93 'edit_docModuleUpload' => array(
94 'type' => 'check',
95 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:edit_docModuleUpload',
96 'csh' => 'edit_docModuleUpload'
97 ),
98 'showHiddenFilesAndFolders' => array(
99 'type' => 'check',
100 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:showHiddenFilesAndFolders',
101 'csh' => 'showHiddenFilesAndFolders'
102 ),
103 'copyLevels' => array(
104 'type' => 'text',
105 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:copyLevels',
106 'csh' => 'copyLevels'
107 ),
108 'recursiveDelete' => array(
109 'type' => 'check',
110 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:recursiveDelete',
111 'csh' => 'recursiveDelete'
112 ),
113 'resetConfiguration' => array(
114 'type' => 'button',
115 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:resetConfiguration',
116 'buttonlabel' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:resetConfigurationButton',
117 'csh' => 'reset',
118 'confirm' => true,
119 'confirmData' => array(
120 'message' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:setToStandardQuestion',
121 'jsCodeAfterOk' => 'document.getElementById(\'setValuesToDefault\').value = 1; document.getElementById(\'SetupModuleController\').submit();'
122 )
123 ),
124 'resizeTextareas_Flexible' => array(
125 'type' => 'check',
126 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:resizeTextareas_Flexible',
127 'csh' => 'resizeTextareas_Flexible'
128 ),
129 'resizeTextareas_MaxHeight' => array(
130 'type' => 'text',
131 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:flexibleTextareas_MaxHeight',
132 'csh' => 'flexibleTextareas_MaxHeight'
133 ),
134 'debugInWindow' => array(
135 'type' => 'check',
136 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:debugInWindow',
137 'access' => 'admin'
138 )
139 ),
140 'showitem' => '--div--;LLL:EXT:setup/Resources/Private/Language/locallang.xlf:personal_data,realName,email,emailMeAtLogin,avatar,lang,
141 --div--;LLL:EXT:setup/Resources/Private/Language/locallang.xml:passwordHeader,passwordCurrent,password,password2,
142 --div--;LLL:EXT:setup/Resources/Private/Language/locallang.xlf:opening,startModule,thumbnailsByDefault,titleLen,
143 --div--;LLL:EXT:setup/Resources/Private/Language/locallang.xlf:editFunctionsTab,edit_RTE,edit_docModuleUpload,showHiddenFilesAndFolders,resizeTextareas_Flexible,resizeTextareas_MaxHeight,copyLevels,recursiveDelete,resetConfiguration,
144 --div--;LLL:EXT:setup/Resources/Private/Language/locallang.xlf:adminFunctions,debugInWindow'
145 );
146 }