[TASK] Hard-coded labels in file collections 64/25264/3
authorTomita Militaru <militarutomita@gmail.com>
Mon, 11 Nov 2013 14:29:35 +0000 (16:29 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 11 Nov 2013 18:47:54 +0000 (19:47 +0100)
Adds labels for file collection types in TCA

Resolves: #52727
Release: 6.2, 6.1, 6.0
Change-Id: I0aafc385d824a41a4e6045a9708d726dee06ea39
Reviewed-on: https://review.typo3.org/25264
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Configuration/TCA/sys_file_collection.php
typo3/sysext/lang/locallang_tca.xlf

index 1295bb2..144bfbd 100644 (file)
@@ -112,9 +112,9 @@ return array(
                        'config' => array(
                                'type' => 'select',
                                'items' => array(
-                                       array('Static selection of files', 'static'),
-                                       array('Folder from Storage', 'folder'),
-                                       array('Select by category', 'category')
+                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type.0', 'static'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type.1', 'folder'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file_collection.type.2', 'category')
                                )
                        )
                ),
index e6b4df5..49e0b5a 100644 (file)
                        <trans-unit id="sys_file_collection.type" xml:space="preserve">
                                <source>Type</source>
                        </trans-unit>
+                        <trans-unit id="sys_file_collection.type.0" xml:space="preserve">
+                               <source>Static selection of files</source>
+                       </trans-unit>
+                        <trans-unit id="sys_file_collection.type.1" xml:space="preserve">
+                               <source>Folder from Storage</source>
+                       </trans-unit>
+                        <trans-unit id="sys_file_collection.type.2" xml:space="preserve">
+                               <source>Select by category</source>
+                       </trans-unit>
                        <trans-unit id="sys_file_collection.storage" xml:space="preserve">
                                <source>File Storage</source>
                        </trans-unit>