[TASK] Make sys_file_metadata translatable
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_file_metadata.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file',
5 'label' => 'file',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'type' => 'type',
10 'hideTable' => TRUE,
11 'rootLevel' => TRUE,
12 'languageField' => 'sys_language_uid',
13 'transOrigPointerField' => 'l10n_parent',
14 'transOrigDiffSourceField' => 'l10n_diffsource',
15 'versioningWS' => TRUE,
16 'origUid' => 't3_origuid',
17 'default_sortby' => 'ORDER BY crdate DESC',
18 'dividers2tabs' => TRUE,
19 'typeicon_classes' => array(
20 'default' => 'mimetypes-other-other'
21 ),
22 'security' => array(
23 'ignoreWebMountRestriction' => TRUE,
24 'ignoreRootLevelRestriction' => TRUE,
25 ),
26 ),
27 'interface' => array(
28 'showRecordFieldList' => 'file, title, description, alternative'
29 ),
30 'columns' => array(
31 'sys_language_uid' => array(
32 'exclude' => 0,
33 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
34 'config' => array(
35 'type' => 'select',
36 'foreign_table' => 'sys_language',
37 'foreign_table_where' => 'ORDER BY sys_language.title',
38 'items' => array(
39 array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
40 array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0)
41 )
42 )
43 ),
44 'l10n_parent' => array(
45 'displayCond' => 'FIELD:sys_language_uid:>:0',
46 'exclude' => 0,
47 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
48 'config' => array(
49 'type' => 'select',
50 'items' => array(
51 array('', 0)
52 ),
53 'foreign_table' => 'sys_file_reference',
54 'foreign_table_where' => 'AND sys_file_reference.uid=###REC_FIELD_l10n_parent### AND sys_file_reference.sys_language_uid IN (-1,0)'
55 )
56 ),
57 'l10n_diffsource' => array(
58 'exclude' => 0,
59 'config' => array(
60 'type' => 'passthrough'
61 )
62 ),
63 't3ver_label' => array(
64 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
65 'config' => array(
66 'type' => 'input',
67 'size' => '30',
68 'max' => '30'
69 )
70 ),
71 'fileinfo' => array(
72 'config' => array(
73 'type' => 'user',
74 'userFunc' => 'typo3/sysext/core/Classes/Resource/Hook/FileInfoHook.php:TYPO3\CMS\Core\Resource\Hook\FileInfoHook->renderFileMetadataInfo'
75 )
76 ),
77 'file' => array(
78 'displayCond' => 'FIELD:sys_language_uid:=:0',
79 'exclude' => 0,
80 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file',
81 'config' => array(
82 'readOnly' => 1,
83 'type' => 'select',
84 'foreign_table' => 'sys_file',
85 'minitems' => 1,
86 'maxitems' => 1,
87 'size' => 1,
88 )
89 ),
90 'title' => array(
91 'exclude' => 1,
92 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.title',
93 'l10n_mode' => 'prefixLangTitle',
94 'config' => array(
95 'type' => 'input',
96 'size' => '30',
97 'placeholder' => '__row|file|name'
98 )
99 ),
100 'description' => array(
101 'exclude' => 0,
102 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.description',
103 'l10n_mode' => 'prefixLangTitle',
104 'config' => array(
105 'type' => 'text',
106 'cols' => '40',
107 'rows' => '3'
108 )
109 ),
110 'alternative' => array(
111 'exclude' => 0,
112 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file.alternative',
113 'config' => array(
114 'type' => 'text',
115 'cols' => '40',
116 'rows' => '3'
117 )
118 ),
119 'width' => array(
120 'exclude' => 0,
121 'l10n_mode' => 'exclude'
122 ),
123 'height' => array(
124 'exclude' => 0,
125 'l10n_mode' => 'exclude'
126 )
127 ),
128 'types' => array(
129 '1' => array('showitem' => 'fileinfo, title, description, alternative')
130 ),
131 'palettes' => array()
132 );