f91d0322b1946d23687ffd893818061f4d60422f
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / SiteConfiguration / site_language.php
1 <?php
2
3 return [
4 'ctrl' => [
5 'label' => 'languageId',
6 'label_userFunc' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::class . '->getSiteLanguageTitle',
7 'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.ctrl.title',
8 'typeicon_classes' => [
9 'default' => 'mimetypes-x-content-domain',
10 ],
11 ],
12 'columns' => [
13 'languageId' => [
14 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.language',
15 'config' => [
16 'type' => 'select',
17 'renderType' => 'selectSingle',
18 'items' => [
19 ['Default Language', 0],
20 ],
21 'foreign_table' => 'sys_language',
22 'size' => 1,
23 'min' => 1,
24 'max' => 1,
25 ],
26 ],
27 'title' => [
28 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.title',
29 'config' => [
30 'type' => 'input',
31 'size' => 10,
32 'eval' => 'required',
33 'placeholder' => 'English',
34 ],
35 ],
36 'navigationTitle' => [
37 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.navigationTitle',
38 'config' => [
39 'type' => 'input',
40 'size' => 10,
41 'placeholder' => 'English',
42 ],
43 ],
44 'base' => [
45 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.base',
46 'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.base',
47 'config' => [
48 'type' => 'input',
49 'eval' => 'required',
50 'default' => '/',
51 ],
52 ],
53 'locale' => [
54 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.locale',
55 'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.locale',
56 'config' => [
57 'type' => 'input',
58 'eval' => 'required',
59 'placeholder' => 'en_US.UTF-8',
60 ],
61 ],
62 'iso-639-1' => [
63 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.iso-639-1',
64 'config' => [
65 'type' => 'select',
66 'renderType' => 'selectSingle',
67 // Fed by data provider
68 'items' => [],
69 ],
70 ],
71 'hreflang' => [
72 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.hreflang',
73 'config' => [
74 'type' => 'input',
75 'placeholder' => 'en-US',
76 ],
77 ],
78 'enabled' => [
79 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.enabled',
80 'config' => [
81 'type' => 'check',
82 'renderType' => 'checkboxToggle',
83 'default' => 1,
84 'items' => [
85 [
86 0 => '',
87 1 => ''
88 ]
89 ]
90 ],
91 ],
92 'direction' => [
93 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.direction',
94 'config' => [
95 'type' => 'select',
96 'renderType' => 'selectSingle',
97 'items' => [
98 ['None', '', ''],
99 ['Left to Right', 'ltr', ''],
100 ['Right to Left', 'rtl', ''],
101 ],
102 ],
103 ],
104 'typo3Language' => [
105 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.typo3Language',
106 'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_language.typo3Language',
107 'config' => [
108 'type' => 'select',
109 'renderType' => 'selectSingle',
110 // Fed by data provider
111 'items' => [],
112 'default' => 'default'
113 ],
114 ],
115 'flag' => [
116 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.flag',
117 'config' => [
118 'type' => 'select',
119 'renderType' => 'selectSingle',
120 'items' => [
121 ['global', 'global', 'flags-multiple'],
122 ['ad', 'ad', 'flags-ad'],
123 ['ae', 'ae', 'flags-ae'],
124 ['af', 'af', 'flags-af'],
125 ['ag', 'ag', 'flags-ag'],
126 ['ai', 'ai', 'flags-ai'],
127 ['al', 'al', 'flags-al'],
128 ['am', 'am', 'flags-am'],
129 ['an', 'an', 'flags-an'],
130 ['ao', 'ao', 'flags-ao'],
131 ['ar', 'ar', 'flags-ar'],
132 ['as', 'as', 'flags-as'],
133 ['at', 'at', 'flags-at'],
134 ['au', 'au', 'flags-au'],
135 ['aw', 'aw', 'flags-aw'],
136 ['ax', 'ax', 'flags-ax'],
137 ['az', 'az', 'flags-az'],
138 ['ba', 'ba', 'flags-ba'],
139 ['bb', 'bb', 'flags-bb'],
140 ['bd', 'bd', 'flags-bd'],
141 ['be', 'be', 'flags-be'],
142 ['bf', 'bf', 'flags-bf'],
143 ['bg', 'bg', 'flags-bg'],
144 ['bh', 'bh', 'flags-bh'],
145 ['bi', 'bi', 'flags-bi'],
146 ['bj', 'bj', 'flags-bj'],
147 ['bm', 'bm', 'flags-bm'],
148 ['bn', 'bn', 'flags-bn'],
149 ['bo', 'bo', 'flags-bo'],
150 ['br', 'br', 'flags-br'],
151 ['bs', 'bs', 'flags-bs'],
152 ['bt', 'bt', 'flags-bt'],
153 ['bv', 'bv', 'flags-bv'],
154 ['bw', 'bw', 'flags-bw'],
155 ['by', 'by', 'flags-by'],
156 ['bz', 'bz', 'flags-bz'],
157 ['ca', 'ca', 'flags-ca'],
158 ['catalonia', 'catalonia', 'flags-catalonia'],
159 ['cc', 'cc', 'flags-cc'],
160 ['cd', 'cd', 'flags-cd'],
161 ['cf', 'cf', 'flags-cf'],
162 ['cg', 'cg', 'flags-cg'],
163 ['ch', 'ch', 'flags-ch'],
164 ['ci', 'ci', 'flags-ci'],
165 ['ck', 'ck', 'flags-ck'],
166 ['cl', 'cl', 'flags-cl'],
167 ['cm', 'cm', 'flags-cm'],
168 ['cn', 'cn', 'flags-cn'],
169 ['co', 'co', 'flags-co'],
170 ['cr', 'cr', 'flags-cr'],
171 ['cs', 'cs', 'flags-cs'],
172 ['cu', 'cu', 'flags-cu'],
173 ['cv', 'cv', 'flags-cv'],
174 ['cx', 'cx', 'flags-cx'],
175 ['cy', 'cy', 'flags-cy'],
176 ['cz', 'cz', 'flags-cz'],
177 ['de', 'de', 'flags-de'],
178 ['dj', 'dj', 'flags-dj'],
179 ['dk', 'dk', 'flags-dk'],
180 ['dm', 'dm', 'flags-dm'],
181 ['do', 'do', 'flags-do'],
182 ['dz', 'dz', 'flags-dz'],
183 ['ec', 'ec', 'flags-ec'],
184 ['ee', 'ee', 'flags-ee'],
185 ['eg', 'eg', 'flags-eg'],
186 ['eh', 'eh', 'flags-eh'],
187 ['en-us-gb', 'en-us-gb', 'flags-en-us-gb'],
188 ['england', 'england', 'flags-gb-eng'],
189 ['er', 'er', 'flags-er'],
190 ['es', 'es', 'flags-es'],
191 ['et', 'et', 'flags-et'],
192 ['eu', 'eu', 'flags-eu'],
193 ['fm', 'fm', 'flags-fm'],
194 ['fi', 'fi', 'flags-fi'],
195 ['fj', 'fj', 'flags-fj'],
196 ['fk', 'fk', 'flags-fk'],
197 ['fm', 'fm', 'flags-fm'],
198 ['fo', 'fo', 'flags-fo'],
199 ['fr', 'fr', 'flags-fr'],
200 ['ga', 'ga', 'flags-ga'],
201 ['gb', 'gb', 'flags-gb'],
202 ['gd', 'gd', 'flags-gd'],
203 ['ge', 'ge', 'flags-ge'],
204 ['gf', 'gf', 'flags-gf'],
205 ['gh', 'gh', 'flags-gh'],
206 ['gi', 'gi', 'flags-gi'],
207 ['gl', 'gl', 'flags-gl'],
208 ['gm', 'gm', 'flags-gm'],
209 ['gn', 'gn', 'flags-gn'],
210 ['gp', 'gp', 'flags-gp'],
211 ['gq', 'gq', 'flags-gq'],
212 ['gr', 'gr', 'flags-gr'],
213 ['gs', 'gs', 'flags-gs'],
214 ['gt', 'gt', 'flags-gt'],
215 ['gu', 'gu', 'flags-gu'],
216 ['gw', 'gw', 'flags-gw'],
217 ['gy', 'gy', 'flags-gy'],
218 ['hk', 'hk', 'flags-hk'],
219 ['hm', 'hm', 'flags-hm'],
220 ['hn', 'hn', 'flags-hn'],
221 ['hr', 'hr', 'flags-hr'],
222 ['ht', 'ht', 'flags-ht'],
223 ['hu', 'hu', 'flags-hu'],
224 ['id', 'id', 'flags-id'],
225 ['ie', 'ie', 'flags-ie'],
226 ['il', 'il', 'flags-il'],
227 ['in', 'in', 'flags-in'],
228 ['io', 'io', 'flags-io'],
229 ['iq', 'iq', 'flags-iq'],
230 ['ir', 'ir', 'flags-ir'],
231 ['is', 'is', 'flags-is'],
232 ['it', 'it', 'flags-it'],
233 ['jm', 'jm', 'flags-jm'],
234 ['jo', 'jo', 'flags-jo'],
235 ['jp', 'jp', 'flags-jp'],
236 ['ke', 'ke', 'flags-ke'],
237 ['kg', 'kg', 'flags-kg'],
238 ['kh', 'kh', 'flags-kh'],
239 ['ki', 'ki', 'flags-ki'],
240 ['km', 'km', 'flags-km'],
241 ['kn', 'kn', 'flags-kn'],
242 ['kp', 'kp', 'flags-kp'],
243 ['kr', 'kr', 'flags-kr'],
244 ['kw', 'kw', 'flags-kw'],
245 ['ky', 'ky', 'flags-ky'],
246 ['kz', 'kz', 'flags-kz'],
247 ['la', 'la', 'flags-la'],
248 ['lb', 'lb', 'flags-lb'],
249 ['lc', 'lc', 'flags-lc'],
250 ['li', 'li', 'flags-li'],
251 ['lk', 'lk', 'flags-lk'],
252 ['lr', 'lr', 'flags-lr'],
253 ['ls', 'ls', 'flags-ls'],
254 ['lt', 'lt', 'flags-lt'],
255 ['lu', 'lu', 'flags-lu'],
256 ['lv', 'lv', 'flags-lv'],
257 ['ly', 'ly', 'flags-ly'],
258 ['ma', 'ma', 'flags-ma'],
259 ['mc', 'mc', 'flags-mc'],
260 ['md', 'md', 'flags-md'],
261 ['me', 'me', 'flags-me'],
262 ['mg', 'mg', 'flags-mg'],
263 ['mh', 'mh', 'flags-mh'],
264 ['mk', 'mk', 'flags-mk'],
265 ['ml', 'ml', 'flags-ml'],
266 ['mm', 'mm', 'flags-mm'],
267 ['mn', 'mn', 'flags-mn'],
268 ['mo', 'mo', 'flags-mo'],
269 ['mp', 'mp', 'flags-mp'],
270 ['mq', 'mq', 'flags-mq'],
271 ['mr', 'mr', 'flags-mr'],
272 ['ms', 'ms', 'flags-ms'],
273 ['mt', 'mt', 'flags-mt'],
274 ['mu', 'mu', 'flags-mu'],
275 ['mv', 'mv', 'flags-mv'],
276 ['mw', 'mw', 'flags-mw'],
277 ['mx', 'mx', 'flags-mx'],
278 ['my', 'my', 'flags-my'],
279 ['mz', 'mz', 'flags-mz'],
280 ['na', 'na', 'flags-na'],
281 ['nc', 'nc', 'flags-nc'],
282 ['ne', 'ne', 'flags-ne'],
283 ['nf', 'nf', 'flags-nf'],
284 ['ng', 'ng', 'flags-ng'],
285 ['ni', 'ni', 'flags-ni'],
286 ['nl', 'nl', 'flags-nl'],
287 ['no', 'no', 'flags-no'],
288 ['np', 'np', 'flags-np'],
289 ['nr', 'nr', 'flags-nr'],
290 ['nu', 'nu', 'flags-nu'],
291 ['nz', 'nz', 'flags-nz'],
292 ['om', 'om', 'flags-om'],
293 ['pa', 'pa', 'flags-pa'],
294 ['pe', 'pe', 'flags-pe'],
295 ['pf', 'pf', 'flags-pf'],
296 ['pg', 'pg', 'flags-pg'],
297 ['ph', 'ph', 'flags-ph'],
298 ['pk', 'pk', 'flags-pk'],
299 ['pl', 'pl', 'flags-pl'],
300 ['pm', 'pm', 'flags-pm'],
301 ['pn', 'pn', 'flags-pn'],
302 ['pr', 'pr', 'flags-pr'],
303 ['ps', 'ps', 'flags-ps'],
304 ['pt', 'pt', 'flags-pt'],
305 ['pw', 'pw', 'flags-pw'],
306 ['py', 'py', 'flags-py'],
307 ['qa', 'qa', 'flags-qa'],
308 ['qc', 'qc', 'flags-qc'],
309 ['re', 're', 'flags-re'],
310 ['ro', 'ro', 'flags-ro'],
311 ['rs', 'rs', 'flags-rs'],
312 ['ru', 'ru', 'flags-ru'],
313 ['rw', 'rw', 'flags-rw'],
314 ['sa', 'sa', 'flags-sa'],
315 ['sb', 'sb', 'flags-sb'],
316 ['sc', 'sc', 'flags-sc'],
317 ['gb-sct', 'gb-sct', 'flags-gb-sct'],
318 ['sd', 'sd', 'flags-sd'],
319 ['se', 'se', 'flags-se'],
320 ['sg', 'sg', 'flags-sg'],
321 ['sh', 'sh', 'flags-sh'],
322 ['si', 'si', 'flags-si'],
323 ['sj', 'sj', 'flags-sj'],
324 ['sk', 'sk', 'flags-sk'],
325 ['sl', 'sl', 'flags-sl'],
326 ['sm', 'sm', 'flags-sm'],
327 ['sn', 'sn', 'flags-sn'],
328 ['so', 'so', 'flags-so'],
329 ['sr', 'sr', 'flags-sr'],
330 ['st', 'st', 'flags-st'],
331 ['sv', 'sv', 'flags-sv'],
332 ['sy', 'sy', 'flags-sy'],
333 ['sz', 'sz', 'flags-sz'],
334 ['tc', 'tc', 'flags-tc'],
335 ['td', 'td', 'flags-td'],
336 ['tf', 'tf', 'flags-tf'],
337 ['tg', 'tg', 'flags-tg'],
338 ['th', 'th', 'flags-th'],
339 ['tj', 'tj', 'flags-tj'],
340 ['tk', 'tk', 'flags-tk'],
341 ['tl', 'tl', 'flags-tl'],
342 ['tm', 'tm', 'flags-tm'],
343 ['tn', 'tn', 'flags-tn'],
344 ['to', 'to', 'flags-to'],
345 ['tr', 'tr', 'flags-tr'],
346 ['tt', 'tt', 'flags-tt'],
347 ['tv', 'tv', 'flags-tv'],
348 ['tw', 'tw', 'flags-tw'],
349 ['tz', 'tz', 'flags-tz'],
350 ['ua', 'ua', 'flags-ua'],
351 ['ug', 'ug', 'flags-ug'],
352 ['um', 'um', 'flags-um'],
353 ['us', 'us', 'flags-us'],
354 ['uy', 'uy', 'flags-uy'],
355 ['uz', 'uz', 'flags-uz'],
356 ['va', 'va', 'flags-va'],
357 ['vc', 'vc', 'flags-vc'],
358 ['ve', 've', 'flags-ve'],
359 ['vg', 'vg', 'flags-vg'],
360 ['vi', 'vi', 'flags-vi'],
361 ['vn', 'vn', 'flags-vn'],
362 ['vu', 'vu', 'flags-vu'],
363 ['gb-wls', 'gb-wls', 'flags-gb-wls'],
364 ['wf', 'wf', 'flags-wf'],
365 ['ws', 'ws', 'flags-ws'],
366 ['ye', 'ye', 'flags-ye'],
367 ['yt', 'yt', 'flags-yt'],
368 ['za', 'za', 'flags-za'],
369 ['zm', 'zm', 'flags-zm'],
370 ['zw', 'zw', 'flags-zw'],
371 ],
372 'size' => 1,
373 'minitems' => 0,
374 'maxitems' => 1,
375 'fieldWizard' => [
376 'selectIcons' => [
377 'disabled' => false,
378 ],
379 ],
380 ],
381 ],
382 'fallbackType' => [
383 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbackType',
384 'displayCond' => 'FIELD:languageId:>:0',
385 'onChange' => 'reload',
386 'config' => [
387 'type' => 'select',
388 'renderType' => 'selectSingle',
389 'items' => [
390 ['No fallback (strict)', 'strict'],
391 ['Fallback to other language', 'fallback'],
392 ],
393 ],
394 ],
395 'fallbacks' => [
396 'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_language.fallbacks',
397 'displayCond' => 'FIELD:fallbackType:=:fallback',
398 'config' => [
399 'type' => 'select',
400 'renderType' => 'selectMultipleSideBySide',
401 'items' => [
402 ['Default Language', 0],
403 ],
404 'foreign_table' => 'sys_language',
405 'size' => 5,
406 'min' => 0,
407 ],
408 ],
409 ],
410 'types' => [
411 '1' => [
412 'showitem' => 'languageId, title, navigationTitle, base, locale, iso-639-1, hreflang, direction, typo3Language, flag, fallbackType, fallbacks, enabled',
413 ],
414 ],
415 ];