[TASK] Hard-coded labels in file collections 80/25280/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 19:09:35 +0000 (20:09 +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/25280
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Configuration/TCA/sys_file_collection.php
typo3/sysext/lang/locallang_tca.xlf

index e43c8a9..1673601 100644 (file)
@@ -112,8 +112,8 @@ return array(
                        'config' => array(
                                'type' => 'select',
                                'items' => array(
-                                       array('Static selection of files', 'static'),
-                                       array('Folder from Storage', 'folder')
+                                       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')
                                )
                        )
                ),
index 87d3f43..e7c8387 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.storage" xml:space="preserve">
                                <source>File Storage</source>
                        </trans-unit>