[!!!][FEATURE] FormEngine element level refactoring
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_language.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'title',
5 'tstamp' => 'tstamp',
6 'default_sortby' => 'ORDER BY sorting',
7 'sortby' => 'sorting',
8 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_language',
9 'adminOnly' => true,
10 'rootLevel' => 1,
11 'enablecolumns' => [
12 'disabled' => 'hidden'
13 ],
14 'typeicon_column' => 'flag',
15 'typeicon_classes' => [
16 'default' => 'mimetypes-x-sys_language',
17 'mask' => 'flags-###TYPE###'
18 ],
19 'versioningWS_alwaysAllowLiveEdit' => true
20 ],
21 'interface' => [
22 'showRecordFieldList' => 'hidden,title'
23 ],
24 'columns' => [
25 'title' => [
26 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
27 'config' => [
28 'type' => 'input',
29 'size' => 35,
30 'max' => 80,
31 'eval' => 'trim,required'
32 ]
33 ],
34 'hidden' => [
35 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.disable',
36 'exclude' => true,
37 'config' => [
38 'type' => 'check',
39 'default' => 0
40 ]
41 ],
42 'language_isocode' => [
43 'exclude' => true,
44 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_language.language_isocode',
45 'config' => [
46 'type' => 'select',
47 'renderType' => 'selectSingle',
48 'size' => 1,
49 'minitems' => 0,
50 'maxitems' => 1,
51 'items' => [],
52 'itemsProcFunc' => \TYPO3\CMS\Core\Service\IsoCodeService::class . '->renderIsoCodeSelectDropdown',
53 ]
54 ],
55 'flag' => [
56 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_language.flag',
57 'config' => [
58 'type' => 'select',
59 'renderType' => 'selectSingle',
60 'items' => [
61 ['', 0, ''],
62 ['multiple', 'multiple', 'flags-multiple'],
63 ['ad', 'ad', 'flags-ad'],
64 ['ae', 'ae', 'flags-ae'],
65 ['af', 'af', 'flags-af'],
66 ['ag', 'ag', 'flags-ag'],
67 ['ai', 'ai', 'flags-ai'],
68 ['al', 'al', 'flags-al'],
69 ['am', 'am', 'flags-am'],
70 ['an', 'an', 'flags-an'],
71 ['ao', 'ao', 'flags-ao'],
72 ['ar', 'ar', 'flags-ar'],
73 ['as', 'as', 'flags-as'],
74 ['at', 'at', 'flags-at'],
75 ['au', 'au', 'flags-au'],
76 ['aw', 'aw', 'flags-aw'],
77 ['ax', 'ax', 'flags-ax'],
78 ['az', 'az', 'flags-az'],
79 ['ba', 'ba', 'flags-ba'],
80 ['bb', 'bb', 'flags-bb'],
81 ['bd', 'bd', 'flags-bd'],
82 ['be', 'be', 'flags-be'],
83 ['bf', 'bf', 'flags-bf'],
84 ['bg', 'bg', 'flags-bg'],
85 ['bh', 'bh', 'flags-bh'],
86 ['bi', 'bi', 'flags-bi'],
87 ['bj', 'bj', 'flags-bj'],
88 ['bm', 'bm', 'flags-bm'],
89 ['bn', 'bn', 'flags-bn'],
90 ['bo', 'bo', 'flags-bo'],
91 ['br', 'br', 'flags-br'],
92 ['bs', 'bs', 'flags-bs'],
93 ['bt', 'bt', 'flags-bt'],
94 ['bv', 'bv', 'flags-bv'],
95 ['bw', 'bw', 'flags-bw'],
96 ['by', 'by', 'flags-by'],
97 ['bz', 'bz', 'flags-bz'],
98 ['ca', 'ca', 'flags-ca'],
99 ['catalonia', 'catalonia', 'flags-catalonia'],
100 ['cc', 'cc', 'flags-cc'],
101 ['cd', 'cd', 'flags-cd'],
102 ['cf', 'cf', 'flags-cf'],
103 ['cg', 'cg', 'flags-cg'],
104 ['ch', 'ch', 'flags-ch'],
105 ['ci', 'ci', 'flags-ci'],
106 ['ck', 'ck', 'flags-ck'],
107 ['cl', 'cl', 'flags-cl'],
108 ['cm', 'cm', 'flags-cm'],
109 ['cn', 'cn', 'flags-cn'],
110 ['co', 'co', 'flags-co'],
111 ['cr', 'cr', 'flags-cr'],
112 ['cs', 'cs', 'flags-cs'],
113 ['cu', 'cu', 'flags-cu'],
114 ['cv', 'cv', 'flags-cv'],
115 ['cx', 'cx', 'flags-cx'],
116 ['cy', 'cy', 'flags-cy'],
117 ['cz', 'cz', 'flags-cz'],
118 ['de', 'de', 'flags-de'],
119 ['dj', 'dj', 'flags-dj'],
120 ['dk', 'dk', 'flags-dk'],
121 ['dm', 'dm', 'flags-dm'],
122 ['do', 'do', 'flags-do'],
123 ['dz', 'dz', 'flags-dz'],
124 ['ec', 'ec', 'flags-ec'],
125 ['ee', 'ee', 'flags-ee'],
126 ['eg', 'eg', 'flags-eg'],
127 ['eh', 'eh', 'flags-eh'],
128 ['en-us-gb', 'en-us-gb', 'flags-en-us-gb'],
129 ['england', 'england', 'flags-gb-eng'],
130 ['er', 'er', 'flags-er'],
131 ['es', 'es', 'flags-es'],
132 ['et', 'et', 'flags-et'],
133 ['europeanunion', 'europeanunion', 'flags-eu'],
134 ['fam', 'fam', 'flags-fam'],
135 ['fi', 'fi', 'flags-fi'],
136 ['fj', 'fj', 'flags-fj'],
137 ['fk', 'fk', 'flags-fk'],
138 ['fm', 'fm', 'flags-fm'],
139 ['fo', 'fo', 'flags-fo'],
140 ['fr', 'fr', 'flags-fr'],
141 ['ga', 'ga', 'flags-ga'],
142 ['gb', 'gb', 'flags-gb'],
143 ['gd', 'gd', 'flags-gd'],
144 ['ge', 'ge', 'flags-ge'],
145 ['gf', 'gf', 'flags-gf'],
146 ['gh', 'gh', 'flags-gh'],
147 ['gi', 'gi', 'flags-gi'],
148 ['gl', 'gl', 'flags-gl'],
149 ['gm', 'gm', 'flags-gm'],
150 ['gn', 'gn', 'flags-gn'],
151 ['gp', 'gp', 'flags-gp'],
152 ['gq', 'gq', 'flags-gq'],
153 ['gr', 'gr', 'flags-gr'],
154 ['gs', 'gs', 'flags-gs'],
155 ['gt', 'gt', 'flags-gt'],
156 ['gu', 'gu', 'flags-gu'],
157 ['gw', 'gw', 'flags-gw'],
158 ['gy', 'gy', 'flags-gy'],
159 ['hk', 'hk', 'flags-hk'],
160 ['hm', 'hm', 'flags-hm'],
161 ['hn', 'hn', 'flags-hn'],
162 ['hr', 'hr', 'flags-hr'],
163 ['ht', 'ht', 'flags-ht'],
164 ['hu', 'hu', 'flags-hu'],
165 ['id', 'id', 'flags-id'],
166 ['ie', 'ie', 'flags-ie'],
167 ['il', 'il', 'flags-il'],
168 ['in', 'in', 'flags-in'],
169 ['io', 'io', 'flags-io'],
170 ['iq', 'iq', 'flags-iq'],
171 ['ir', 'ir', 'flags-ir'],
172 ['is', 'is', 'flags-is'],
173 ['it', 'it', 'flags-it'],
174 ['jm', 'jm', 'flags-jm'],
175 ['jo', 'jo', 'flags-jo'],
176 ['jp', 'jp', 'flags-jp'],
177 ['ke', 'ke', 'flags-ke'],
178 ['kg', 'kg', 'flags-kg'],
179 ['kh', 'kh', 'flags-kh'],
180 ['ki', 'ki', 'flags-ki'],
181 ['km', 'km', 'flags-km'],
182 ['kn', 'kn', 'flags-kn'],
183 ['kp', 'kp', 'flags-kp'],
184 ['kr', 'kr', 'flags-kr'],
185 ['kw', 'kw', 'flags-kw'],
186 ['ky', 'ky', 'flags-ky'],
187 ['kz', 'kz', 'flags-kz'],
188 ['la', 'la', 'flags-la'],
189 ['lb', 'lb', 'flags-lb'],
190 ['lc', 'lc', 'flags-lc'],
191 ['li', 'li', 'flags-li'],
192 ['lk', 'lk', 'flags-lk'],
193 ['lr', 'lr', 'flags-lr'],
194 ['ls', 'ls', 'flags-ls'],
195 ['lt', 'lt', 'flags-lt'],
196 ['lu', 'lu', 'flags-lu'],
197 ['lv', 'lv', 'flags-lv'],
198 ['ly', 'ly', 'flags-ly'],
199 ['ma', 'ma', 'flags-ma'],
200 ['mc', 'mc', 'flags-mc'],
201 ['md', 'md', 'flags-md'],
202 ['me', 'me', 'flags-me'],
203 ['mg', 'mg', 'flags-mg'],
204 ['mh', 'mh', 'flags-mh'],
205 ['mk', 'mk', 'flags-mk'],
206 ['ml', 'ml', 'flags-ml'],
207 ['mm', 'mm', 'flags-mm'],
208 ['mn', 'mn', 'flags-mn'],
209 ['mo', 'mo', 'flags-mo'],
210 ['mp', 'mp', 'flags-mp'],
211 ['mq', 'mq', 'flags-mq'],
212 ['mr', 'mr', 'flags-mr'],
213 ['ms', 'ms', 'flags-ms'],
214 ['mt', 'mt', 'flags-mt'],
215 ['mu', 'mu', 'flags-mu'],
216 ['mv', 'mv', 'flags-mv'],
217 ['mw', 'mw', 'flags-mw'],
218 ['mx', 'mx', 'flags-mx'],
219 ['my', 'my', 'flags-my'],
220 ['mz', 'mz', 'flags-mz'],
221 ['na', 'na', 'flags-na'],
222 ['nc', 'nc', 'flags-nc'],
223 ['ne', 'ne', 'flags-ne'],
224 ['nf', 'nf', 'flags-nf'],
225 ['ng', 'ng', 'flags-ng'],
226 ['ni', 'ni', 'flags-ni'],
227 ['nl', 'nl', 'flags-nl'],
228 ['no', 'no', 'flags-no'],
229 ['np', 'np', 'flags-np'],
230 ['nr', 'nr', 'flags-nr'],
231 ['nu', 'nu', 'flags-nu'],
232 ['nz', 'nz', 'flags-nz'],
233 ['om', 'om', 'flags-om'],
234 ['pa', 'pa', 'flags-pa'],
235 ['pe', 'pe', 'flags-pe'],
236 ['pf', 'pf', 'flags-pf'],
237 ['pg', 'pg', 'flags-pg'],
238 ['ph', 'ph', 'flags-ph'],
239 ['pk', 'pk', 'flags-pk'],
240 ['pl', 'pl', 'flags-pl'],
241 ['pm', 'pm', 'flags-pm'],
242 ['pn', 'pn', 'flags-pn'],
243 ['pr', 'pr', 'flags-pr'],
244 ['ps', 'ps', 'flags-ps'],
245 ['pt', 'pt', 'flags-pt'],
246 ['pw', 'pw', 'flags-pw'],
247 ['py', 'py', 'flags-py'],
248 ['qa', 'qa', 'flags-qa'],
249 ['qc', 'qc', 'flags-qc'],
250 ['re', 're', 'flags-re'],
251 ['ro', 'ro', 'flags-ro'],
252 ['rs', 'rs', 'flags-rs'],
253 ['ru', 'ru', 'flags-ru'],
254 ['rw', 'rw', 'flags-rw'],
255 ['sa', 'sa', 'flags-sa'],
256 ['sb', 'sb', 'flags-sb'],
257 ['sc', 'sc', 'flags-sc'],
258 ['scotland', 'scotland', 'flags-scotland'],
259 ['sd', 'sd', 'flags-sd'],
260 ['se', 'se', 'flags-se'],
261 ['sg', 'sg', 'flags-sg'],
262 ['sh', 'sh', 'flags-sh'],
263 ['si', 'si', 'flags-si'],
264 ['sj', 'sj', 'flags-sj'],
265 ['sk', 'sk', 'flags-sk'],
266 ['sl', 'sl', 'flags-sl'],
267 ['sm', 'sm', 'flags-sm'],
268 ['sn', 'sn', 'flags-sn'],
269 ['so', 'so', 'flags-so'],
270 ['sr', 'sr', 'flags-sr'],
271 ['st', 'st', 'flags-st'],
272 ['sv', 'sv', 'flags-sv'],
273 ['sy', 'sy', 'flags-sy'],
274 ['sz', 'sz', 'flags-sz'],
275 ['tc', 'tc', 'flags-tc'],
276 ['td', 'td', 'flags-td'],
277 ['tf', 'tf', 'flags-tf'],
278 ['tg', 'tg', 'flags-tg'],
279 ['th', 'th', 'flags-th'],
280 ['tj', 'tj', 'flags-tj'],
281 ['tk', 'tk', 'flags-tk'],
282 ['tl', 'tl', 'flags-tl'],
283 ['tm', 'tm', 'flags-tm'],
284 ['tn', 'tn', 'flags-tn'],
285 ['to', 'to', 'flags-to'],
286 ['tr', 'tr', 'flags-tr'],
287 ['tt', 'tt', 'flags-tt'],
288 ['tv', 'tv', 'flags-tv'],
289 ['tw', 'tw', 'flags-tw'],
290 ['tz', 'tz', 'flags-tz'],
291 ['ua', 'ua', 'flags-ua'],
292 ['ug', 'ug', 'flags-ug'],
293 ['um', 'um', 'flags-um'],
294 ['us', 'us', 'flags-us'],
295 ['uy', 'uy', 'flags-uy'],
296 ['uz', 'uz', 'flags-uz'],
297 ['va', 'va', 'flags-va'],
298 ['vc', 'vc', 'flags-vc'],
299 ['ve', 've', 'flags-ve'],
300 ['vg', 'vg', 'flags-vg'],
301 ['vi', 'vi', 'flags-vi'],
302 ['vn', 'vn', 'flags-vn'],
303 ['vu', 'vu', 'flags-vu'],
304 ['wales', 'wales', 'flags-wales'],
305 ['wf', 'wf', 'flags-wf'],
306 ['ws', 'ws', 'flags-ws'],
307 ['ye', 'ye', 'flags-ye'],
308 ['yt', 'yt', 'flags-yt'],
309 ['za', 'za', 'flags-za'],
310 ['zm', 'zm', 'flags-zm'],
311 ['zw', 'zw', 'flags-zw']
312 ],
313 'size' => 1,
314 'minitems' => 0,
315 'maxitems' => 1,
316 'fieldWizard' => [
317 'selectIcons' => [
318 'disabled' => false,
319 ],
320 ],
321 ]
322 ]
323 ],
324 'types' => [
325 '1' => ['showitem' => '
326 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
327 title,language_isocode,flag,
328 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
329 hidden,
330 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
331 ']
332 ]
333 ];