[BUGFIX] Locallang file is not an XLIFF file in ext:extensionmanager
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 /**
5 * $GLOBALS['PAGES_TYPES'] defines the various types of pages (field: doktype) the system
6 * can handle and what restrictions may apply to them.
7 * Here you can set the icon and especially you can define which tables are
8 * allowed on a certain pagetype (doktype)
9 * NOTE: The 'default' entry in the $GLOBALS['PAGES_TYPES'] array is the 'base' for all
10 * types, and for every type the entries simply overrides the entries in the 'default' type!
11 */
12 $GLOBALS['PAGES_TYPES'] = array(
13 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(),
14 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(),
15 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION => array(
16 'type' => 'web',
17 'allowedTables' => '*'
18 ),
19 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(),
20 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
21 'type' => 'sys'
22 ),
23 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
24 // Doktype 254 is a 'Folder' - a general purpose storage folder for whatever you like.
25 // In CMS context it's NOT a viewable page. Can contain any element.
26 'type' => 'sys',
27 'allowedTables' => '*'
28 ),
29 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
30 // Doktype 255 is a recycle-bin.
31 'type' => 'sys',
32 'allowedTables' => '*'
33 ),
34 'default' => array(
35 'type' => 'web',
36 'allowedTables' => 'pages',
37 'onlyAllowedTables' => '0'
38 ),
39 );
40
41 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_category');
42
43 /** @var \TYPO3\CMS\Core\Resource\Driver\DriverRegistry $registry */
44 $registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Driver\DriverRegistry::class);
45 $registry->addDriversToTCA();
46
47 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_file_reference');
48 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_file_collection');
49
50 /**
51 * $TBE_MODULES contains the structure of the backend modules as they are
52 * arranged in main- and sub-modules. Every entry in this array represents a
53 * menu item on either first (key) or second level (value from list) in the
54 * left menu in the TYPO3 backend
55 * For information about adding modules to TYPO3 you should consult the
56 * documentation found in "Inside TYPO3"
57 */
58 $GLOBALS['TBE_MODULES'] = array(
59 'web' => 'list',
60 'file' => '',
61 'user' => '',
62 'tools' => '',
63 'system' => '',
64 'help' => '',
65 '_configuration' => array(
66 'web' => array(
67 'labels' => array(
68 'll_ref' => 'LLL:EXT:lang/locallang_mod_web.xlf'
69 ),
70 'configuration' => array(
71 'name' => 'web',
72 'access' => 'user,group',
73 'icon' => 'module-web'
74 )
75 ),
76 'file' => array(
77 'labels' => array(
78 'll_ref' => 'LLL:EXT:lang/locallang_mod_file.xlf'
79 ),
80 'configuration' => array(
81 'name' => 'file',
82 'access' => 'user,group',
83 'workspaces' => 'online,custom',
84 'icon' => 'module-file'
85 )
86 ),
87 'user' => array(
88 'labels' => array(
89 'll_ref' => 'LLL:EXT:lang/locallang_mod_usertools.xlf'
90 ),
91 'configuration' => array(
92 'name' => 'user',
93 'access' => 'user,group',
94 'icon' => 'status-user-backend'
95 )
96 ),
97 'tools' => array(
98 'labels' => array(
99 'll_ref' => 'LLL:EXT:lang/locallang_mod_admintools.xlf'
100 ),
101 'configuration' => array(
102 'name' => 'tools',
103 'access' => 'admin',
104 'icon' => 'module-tools'
105 )
106 ),
107 'system' => array(
108 'labels' => array(
109 'll_ref' => 'LLL:EXT:lang/locallang_mod_system.xlf'
110 ),
111 'configuration' => array(
112 'name' => 'system',
113 'access' => 'admin',
114 'icon' => 'module-system'
115 )
116 ),
117 'help' => array(
118 'labels' => array(
119 'll_ref' => 'LLL:EXT:lang/locallang_mod_help.xlf'
120 ),
121 'configuration' => array(
122 'name' => 'help',
123 'icon' => 'module-help'
124 )
125 )
126 )
127 );
128
129
130 // Register the page tree core navigation component
131 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'typo3-pagetree');
132
133
134 /**
135 * $TBE_STYLES configures backend styles and colors; Basically this contains
136 * all the values that can be used to create new skins for TYPO3.
137 * For information about making skins to TYPO3 you should consult the
138 * documentation found in "Inside TYPO3"
139 */
140 $GLOBALS['TBE_STYLES'] = array(
141 'colorschemes' => array(
142 '0' => '#E4E0DB,#CBC7C3,#EDE9E5'
143 ),
144 'borderschemes' => array(
145 '0' => array('border:solid 1px black;', 5)
146 ),
147 'skinImg' => array()
148 );
149
150
151 /**
152 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
153 * For information about using the CSH API in TYPO3 you should consult the
154 * documentation found in "Inside TYPO3"
155 */
156 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf');
157 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xlf');
158 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xlf');
159 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xlf');
160 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xlf');
161 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xlf');
162 // General Core
163 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xlf');
164 // Extension manager
165 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_tools_em', 'EXT:lang/locallang_csh_em.xlf');
166 // Web > Info
167 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xlf');
168 // Web > Func
169 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xlf');
170 // Labels for TYPO3 4.5 and greater.
171 // These labels override the ones set above, while still falling back to the original labels
172 // if no translation is available.
173 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_pages.xlf'][] = 'EXT:lang/4.5/locallang_csh_pages.xlf';
174 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_corebe.xlf'][] = 'EXT:lang/4.5/locallang_csh_corebe.xlf';
175
176 /**
177 * Backend sprite icon-names
178 */
179 $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
180 'actions-document-close',
181 'actions-document-duplicates-select',
182 'actions-document-edit-access',
183 'actions-document-export-csv',
184 'actions-document-export-t3d',
185 'actions-document-history-open',
186 'actions-document-import-t3d',
187 'actions-document-info',
188 'actions-document-localize',
189 'actions-document-move',
190 'actions-document-new',
191 'actions-document-open',
192 'actions-document-open-read-only',
193 'actions-document-paste-after',
194 'actions-document-paste-into',
195 'actions-document-save',
196 'actions-document-save-cleartranslationcache',
197 'actions-document-save-close',
198 'actions-document-save-new',
199 'actions-document-save-translation',
200 'actions-document-save-view',
201 'actions-document-select',
202 'actions-document-synchronize',
203 'actions-document-view',
204 'actions-edit-add',
205 'actions-edit-copy',
206 'actions-edit-copy-release',
207 'actions-edit-cut',
208 'actions-edit-cut-release',
209 'actions-edit-delete',
210 'actions-edit-download',
211 'actions-edit-hide',
212 'actions-edit-insert-default',
213 'actions-edit-localize-status-high',
214 'actions-edit-localize-status-low',
215 'actions-edit-merge-localization',
216 'actions-edit-pick-date',
217 'actions-edit-rename',
218 'actions-edit-restore',
219 'actions-edit-undelete-edit',
220 'actions-edit-undo',
221 'actions-edit-unhide',
222 'actions-edit-upload',
223 'actions-input-clear',
224 'actions-insert-record',
225 'actions-insert-reference',
226 'actions-markstate',
227 'actions-message-error-close',
228 'actions-message-information-close',
229 'actions-message-notice-close',
230 'actions-message-ok-close',
231 'actions-message-warning-close',
232 'actions-move-down',
233 'actions-move-left',
234 'actions-move-move',
235 'actions-move-right',
236 'actions-move-to-bottom',
237 'actions-move-to-top',
238 'actions-move-up',
239 'actions-page-move',
240 'actions-page-new',
241 'actions-page-open',
242 'actions-selection-delete',
243 'actions-system-backend-user-emulate',
244 'actions-system-backend-user-switch',
245 'actions-system-cache-clear',
246 'actions-system-cache-clear-impact-high',
247 'actions-system-cache-clear-impact-low',
248 'actions-system-cache-clear-impact-medium',
249 'actions-system-cache-clear-rte',
250 'actions-system-extension-configure',
251 'actions-system-extension-documentation',
252 'actions-system-extension-download',
253 'actions-system-extension-import',
254 'actions-system-extension-install',
255 'actions-system-extension-sqldump',
256 'actions-system-extension-uninstall',
257 'actions-system-extension-update',
258 'actions-system-extension-update-disabled',
259 'actions-system-help-open',
260 'actions-system-list-open',
261 'actions-system-options-view',
262 'actions-system-pagemodule-open',
263 'actions-system-refresh',
264 'actions-system-shortcut-new',
265 'actions-system-tree-search-open',
266 'actions-system-typoscript-documentation',
267 'actions-system-typoscript-documentation-open',
268 'actions-template-new',
269 'actions-unmarkstate',
270 'actions-version-document-remove',
271 'actions-version-page-open',
272 'actions-version-swap-version',
273 'actions-version-swap-workspace',
274 'actions-version-workspace-preview',
275 'actions-version-workspace-sendtostage',
276 'actions-view-go-back',
277 'actions-view-go-down',
278 'actions-view-go-forward',
279 'actions-view-go-up',
280 'actions-view-list-collapse',
281 'actions-view-list-expand',
282 'actions-view-paging-first',
283 'actions-view-paging-first-disabled',
284 'actions-view-paging-last',
285 'actions-view-paging-last-disabled',
286 'actions-view-paging-next',
287 'actions-view-paging-next-disabled',
288 'actions-view-paging-previous',
289 'actions-view-paging-previous-disabled',
290 'actions-view-table-collapse',
291 'actions-view-table-expand',
292 'actions-window-open',
293 'apps-clipboard-images',
294 'apps-clipboard-list',
295 'apps-filetree-folder-add',
296 'apps-filetree-folder-default',
297 'apps-filetree-folder-list',
298 'apps-filetree-folder-locked',
299 'apps-filetree-folder-media',
300 'apps-filetree-folder-news',
301 'apps-filetree-folder-opened',
302 'apps-filetree-folder-recycler',
303 'apps-filetree-folder-temp',
304 'apps-filetree-folder-user',
305 'apps-filetree-mount',
306 'apps-filetree-root',
307 'apps-irre-collapsed',
308 'apps-irre-expanded',
309 'apps-pagetree-backend-user',
310 'apps-pagetree-backend-user-hideinmenu',
311 'apps-pagetree-collapse',
312 'apps-pagetree-drag-copy-above',
313 'apps-pagetree-drag-copy-below',
314 'apps-pagetree-drag-move-above',
315 'apps-pagetree-drag-move-below',
316 'apps-pagetree-drag-move-between',
317 'apps-pagetree-drag-move-into',
318 'apps-pagetree-drag-new-between',
319 'apps-pagetree-drag-new-inside',
320 'apps-pagetree-drag-place-denied',
321 'apps-pagetree-expand',
322 'apps-pagetree-folder-contains-approve',
323 'apps-pagetree-folder-contains-board',
324 'apps-pagetree-folder-contains-fe_users',
325 'apps-pagetree-folder-contains-news',
326 'apps-pagetree-folder-contains-shop',
327 'apps-pagetree-folder-default',
328 'apps-pagetree-page-advanced',
329 'apps-pagetree-page-advanced-hideinmenu',
330 'apps-pagetree-page-advanced-root',
331 'apps-pagetree-page-backend-users',
332 'apps-pagetree-page-backend-users-hideinmenu',
333 'apps-pagetree-page-backend-users-root',
334 'apps-pagetree-page-content-from-page',
335 'apps-pagetree-page-content-from-page-hideinmenu',
336 'apps-pagetree-page-default',
337 'apps-pagetree-page-domain',
338 'apps-pagetree-page-frontend-user',
339 'apps-pagetree-page-frontend-user-hideinmenu',
340 'apps-pagetree-page-frontend-user-root',
341 'apps-pagetree-page-frontend-users',
342 'apps-pagetree-page-frontend-users-hideinmenu',
343 'apps-pagetree-page-frontend-users-root',
344 'apps-pagetree-page-mountpoint',
345 'apps-pagetree-page-mountpoint-hideinmenu',
346 'apps-pagetree-page-mountpoint-root',
347 'apps-pagetree-page-no-icon-found',
348 'apps-pagetree-page-no-icon-found-hideinmenu',
349 'apps-pagetree-page-no-icon-found-root',
350 'apps-pagetree-page-not-in-menu',
351 'apps-pagetree-page-recycler',
352 'apps-pagetree-page-shortcut',
353 'apps-pagetree-page-shortcut-external',
354 'apps-pagetree-page-shortcut-external-hideinmenu',
355 'apps-pagetree-page-shortcut-external-root',
356 'apps-pagetree-page-shortcut-hideinmenu',
357 'apps-pagetree-page-shortcut-root',
358 'apps-pagetree-root',
359 'apps-pagetree-spacer',
360 'apps-tcatree-select-recursive',
361 'apps-toolbar-menu-actions',
362 'apps-toolbar-menu-cache',
363 'apps-toolbar-menu-opendocs',
364 'apps-toolbar-menu-search',
365 'apps-toolbar-menu-shortcut',
366 'apps-toolbar-menu-workspace',
367 'mimetypes-compressed',
368 'mimetypes-excel',
369 'mimetypes-media-audio',
370 'mimetypes-media-flash',
371 'mimetypes-media-image',
372 'mimetypes-media-video',
373 'mimetypes-other-other',
374 'mimetypes-pdf',
375 'mimetypes-powerpoint',
376 'mimetypes-text-css',
377 'mimetypes-text-csv',
378 'mimetypes-text-html',
379 'mimetypes-text-js',
380 'mimetypes-text-php',
381 'mimetypes-text-text',
382 'mimetypes-word',
383 'mimetypes-x-content-divider',
384 'mimetypes-x-content-domain',
385 'mimetypes-x-content-form',
386 'mimetypes-x-content-form-search',
387 'mimetypes-x-content-header',
388 'mimetypes-x-content-html',
389 'mimetypes-x-content-image',
390 'mimetypes-x-content-link',
391 'mimetypes-x-content-list-bullets',
392 'mimetypes-x-content-list-files',
393 'mimetypes-x-content-login',
394 'mimetypes-x-content-menu',
395 'mimetypes-x-content-multimedia',
396 'mimetypes-x-content-page-language-overlay',
397 'mimetypes-x-content-plugin',
398 'mimetypes-x-content-script',
399 'mimetypes-x-content-table',
400 'mimetypes-x-content-template',
401 'mimetypes-x-content-template-extension',
402 'mimetypes-x-content-template-static',
403 'mimetypes-x-content-text',
404 'mimetypes-x-content-text-picture',
405 'mimetypes-x-sys_action',
406 'mimetypes-x-sys_category',
407 'mimetypes-x-sys_language',
408 'mimetypes-x-sys_news',
409 'mimetypes-x-sys_workspace',
410 'mimetypes-x_belayout',
411 'status-dialog-error',
412 'status-dialog-information',
413 'status-dialog-notification',
414 'status-dialog-ok',
415 'status-dialog-warning',
416 'status-overlay-access-restricted',
417 'status-overlay-deleted',
418 'status-overlay-hidden',
419 'status-overlay-icon-missing',
420 'status-overlay-includes-subpages',
421 'status-overlay-locked',
422 'status-overlay-scheduled',
423 'status-overlay-scheduled-future-end',
424 'status-overlay-translated',
425 'status-status-checked',
426 'status-status-current',
427 'status-status-edit-read-only',
428 'status-status-icon-missing',
429 'status-status-locked',
430 'status-status-permission-denied',
431 'status-status-permission-granted',
432 'status-status-readonly',
433 'status-status-reference-hard',
434 'status-status-reference-soft',
435 'status-status-sorting-asc',
436 'status-status-sorting-desc',
437 'status-status-sorting-light-asc',
438 'status-status-sorting-light-desc',
439 'status-status-workspace-draft',
440 'status-system-extension-required',
441 'status-user-admin',
442 'status-user-backend',
443 'status-user-frontend',
444 'status-user-group-backend',
445 'status-user-group-frontend',
446 'status-version-1',
447 'status-version-2',
448 'status-version-3',
449 'status-version-4',
450 'status-version-5',
451 'status-version-6',
452 'status-version-7',
453 'status-version-8',
454 'status-version-9',
455 'status-version-10',
456 'status-version-11',
457 'status-version-12',
458 'status-version-13',
459 'status-version-14',
460 'status-version-15',
461 'status-version-16',
462 'status-version-17',
463 'status-version-18',
464 'status-version-19',
465 'status-version-20',
466 'status-version-21',
467 'status-version-22',
468 'status-version-23',
469 'status-version-24',
470 'status-version-25',
471 'status-version-26',
472 'status-version-27',
473 'status-version-28',
474 'status-version-29',
475 'status-version-30',
476 'status-version-31',
477 'status-version-32',
478 'status-version-33',
479 'status-version-34',
480 'status-version-35',
481 'status-version-36',
482 'status-version-37',
483 'status-version-38',
484 'status-version-39',
485 'status-version-40',
486 'status-version-41',
487 'status-version-42',
488 'status-version-43',
489 'status-version-44',
490 'status-version-45',
491 'status-version-46',
492 'status-version-47',
493 'status-version-48',
494 'status-version-49',
495 'status-version-50',
496 'status-version-no-version',
497 'status-warning-in-use',
498 'status-warning-lock',
499 'treeline-blank',
500 'treeline-join',
501 'treeline-joinbottom',
502 'treeline-jointop',
503 'treeline-line',
504 'treeline-minus',
505 'treeline-minusbottom',
506 'treeline-minusonly',
507 'treeline-minustop',
508 'treeline-plus',
509 'treeline-plusbottom',
510 'treeline-plusonly',
511 'treeline-stopper',
512 'module-web',
513 'module-file',
514 'module-system',
515 'module-tools',
516 'module-user',
517 'module-help',
518 );
519
520
521 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] = array(
522 'deleted',
523 'hidden',
524 'starttime',
525 'endtime',
526 'futureendtime',
527 'fe_group',
528 'protectedSection'
529 );
530
531
532 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] = array(
533 'hidden' => 'status-overlay-hidden',
534 'fe_group' => 'status-overlay-access-restricted',
535 'starttime' => 'status-overlay-scheduled',
536 'endtime' => 'status-overlay-scheduled',
537 'futureendtime' => 'status-overlay-scheduled-future-end',
538 'readonly' => 'status-overlay-locked',
539 'deleted' => 'status-overlay-deleted',
540 'missing' => 'status-overlay-missing',
541 'translated' => 'status-overlay-translated',
542 'protectedSection' => 'status-overlay-includes-subpages'
543 );
544
545 // add stylesheets from the core
546 $GLOBALS['TBE_STYLES']['skins']['core']['stylesheetDirectories']['Base'] = 'EXT:core/Resources/Public/StyleSheets/';
547
548 // Adding flags to the sprite manager
549 if (TYPO3_MODE === 'BE' || TYPO3_MODE === 'FE' && isset($GLOBALS['BE_USER'])) {
550 $flagNames = array(
551 'multiple',
552 'ad', 'ae', 'af', 'ag', 'ai', 'al', 'am', 'an', 'ao', 'ar', 'as', 'at', 'au', 'aw', 'ax', 'az',
553 'ba', 'bb', 'bd', 'be', 'bf', 'bg', 'bh', 'bi', 'bj', 'bm', 'bn', 'bo', 'br', 'bs', 'bt', 'bv', 'bw', 'by', 'bz',
554 'ca', 'catalonia', 'cc', 'cd', 'cf', 'cg', 'ch', 'ci', 'ck', 'cl', 'cm', 'cn', 'co', 'cr', 'cs', 'cu', 'cv', 'cx', 'cy', 'cz',
555 'de', 'dj', 'dk', 'dm', 'do', 'dz',
556 'ec', 'ee', 'eg', 'eh', 'england', 'er', 'es', 'et', 'europeanunion',
557 'fam', 'fi', 'fj', 'fk', 'fm', 'fo', 'fr',
558 'ga', 'gb', 'gd', 'ge', 'gf', 'gh', 'gi', 'gl', 'gm', 'gn', 'gp', 'gq', 'gr', 'gs', 'gt', 'gu', 'gw', 'gy',
559 'hk', 'hm', 'hn', 'hr', 'ht', 'hu',
560 'id', 'ie', 'il', 'in', 'io', 'iq', 'ir', 'is', 'it',
561 'jm', 'jo', 'jp',
562 'ke', 'kg', 'kh', 'ki', 'km', 'kn', 'kp', 'kr', 'kw', 'ky', 'kz',
563 'la', 'lb', 'lc', 'li', 'lk', 'lr', 'ls', 'lt', 'lu', 'lv', 'ly',
564 'ma', 'mc', 'md', 'me', 'mg', 'mh', 'mk', 'ml', 'mm', 'mn', 'mo', 'mp', 'mq', 'mr', 'ms', 'mt', 'mu', 'mv', 'mw', 'mx', 'my', 'mz',
565 'na', 'nc', 'ne', 'nf', 'ng', 'ni', 'nl', 'no', 'np', 'nr', 'nu', 'nz',
566 'om',
567 'pa', 'pe', 'pf', 'pg', 'ph', 'pk', 'pl', 'pm', 'pn', 'pr', 'ps', 'pt', 'pw', 'py',
568 'qa', 'qc',
569 're', 'ro', 'rs', 'ru', 'rw',
570 'sa', 'sb', 'sc', 'scotland', 'sd', 'se', 'sg', 'sh', 'si', 'sj', 'sk', 'sl', 'sm', 'sn', 'so', 'sr', 'st', 'sv', 'sy', 'sz',
571 'tc', 'td', 'tf', 'tg', 'th', 'tj', 'tk', 'tl', 'tm', 'tn', 'to', 'tr', 'tt', 'tv', 'tw', 'tz',
572 'ua', 'ug', 'um', 'us', 'uy', 'uz',
573 'va', 'vc', 've', 'vg', 'vi', 'vn', 'vu',
574 'wales', 'wf', 'ws',
575 'ye', 'yt',
576 'za', 'zm', 'zw'
577 );
578
579 $flagIcons = array();
580 foreach ($flagNames as $flagName) {
581 $flagIcons[] = 'flags-' . $flagName;
582 $flagIcons[] = 'flags-' . $flagName . '-overlay';
583 }
584 \TYPO3\CMS\Backend\Sprite\SpriteManager::addIconSprite($flagIcons);
585 unset($flagNames, $flagName, $flagIcons);
586 }