e867c63d29fdfbae4793271c2500a0f576470894
[TYPO3CMS/Extensions/static_info_tables.git] / Configuration / TCA / static_languages.php
1 <?php
2 // Language reference data from ISO 639-1
3 return array(
4 'ctrl' => array(
5 'label' => 'lg_name_en',
6 'label_alt' => 'lg_iso_2',
7 'label_alt_force' => 1,
8 'label_userFunc' => 'SJBR\\StaticInfoTables\\Hook\\Backend\\Form\\ElementRenderingHelper->addIsoCodeToLabel',
9 'adminOnly' => 1,
10 'rootLevel' => 1,
11 'is_static' => 1,
12 'readOnly' => 1,
13 'default_sortby' => 'ORDER BY lg_name_en',
14 'delete' => 'deleted',
15 'title' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages.title',
16 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('static_info_tables') . 'Resources/Public/Images/Icons/icon_static_languages.gif',
17 'searchFields' => 'lg_name_en,lg_name_local'
18 ),
19 'interface' => array(
20 'showRecordFieldList' => 'lg_name_local,lg_name_en,lg_iso_2,lg_typo3,lg_country_iso_2,lg_collate_locale,lg_sacred,lg_constructed'
21 ),
22 'columns' => array(
23 'deleted' => array(
24 'readonly' => 1,
25 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:deleted',
26 'config' => array(
27 'type' => 'check'
28 )
29 ),
30 'lg_iso_2' => array(
31 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_iso_2',
32 'exclude' => '0',
33 'config' => array(
34 'type' => 'input',
35 'size' => '4',
36 'max' => '2',
37 'eval' => '',
38 'default' => ''
39 )
40 ),
41 'lg_name_local' => array(
42 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
43 'exclude' => '0',
44 'config' => array(
45 'type' => 'input',
46 'size' => '25',
47 'max' => '50',
48 'eval' => 'trim',
49 'default' => '',
50 '_is_string' => '1'
51 )
52 ),
53 'lg_name_en' => array(
54 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_name_en',
55 'exclude' => '0',
56 'config' => array(
57 'type' => 'input',
58 'size' => '18',
59 'max' => '40',
60 'eval' => 'trim',
61 'default' => '',
62 '_is_string' => '1'
63 )
64 ),
65 'lg_typo3' => array(
66 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_typo3',
67 'exclude' => '0',
68 'config' => array(
69 'type' => 'input',
70 'size' => '3',
71 'max' => '2',
72 'eval' => '',
73 'default' => ''
74 )
75 ),
76 'lg_country_iso_2' => Array (
77 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_countries_item.cn_iso_2',
78 'exclude' => '0',
79 'config' => Array (
80 'type' => 'input',
81 'size' => '3',
82 'max' => '2',
83 'eval' => '',
84 'default' => ''
85 )
86 ),
87 'lg_collate_locale' => Array (
88 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_collate_locale',
89 'exclude' => '0',
90 'config' => Array (
91 'type' => 'input',
92 'size' => '5',
93 'max' => '5',
94 'eval' => '',
95 'default' => ''
96 )
97 ),
98 'lg_sacred' => array(
99 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_sacred',
100 'exclude' => '0',
101 'config' => array(
102 'type' => 'check',
103 'default' => '0'
104 )
105 ),
106 'lg_constructed' => array(
107 'label' => 'LLL:EXT:static_info_tables/Resources/Private/Language/locallang_db.xlf:static_languages_item.lg_constructed',
108 'exclude' => '0',
109 'config' => array(
110 'type' => 'check',
111 'default' => '0'
112 )
113 ),
114 ),
115 'types' => array(
116 '1' => array(
117 'showitem' => 'lg_name_local,lg_name_en,lg_iso_2,lg_typo3,lg_country_iso_2,lg_collate_locale,lg_sacred,lg_constructed'
118 )
119 )
120 );