[TASK] Support for color space "sRGB" 20/44220/3
authorXavier Perseguers <xavier@typo3.org>
Thu, 22 Oct 2015 11:07:15 +0000 (13:07 +0200)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Thu, 22 Oct 2015 11:59:13 +0000 (13:59 +0200)
Digital cameras are using sRGB color space instead of standard RGB.

This color space has been endorsed by the W3C, Exif, Intel, Pantone,
Corel, and many other industry players and is designed to match
typical home and office viewing conditions, rather than the darker
environment typically used for commercial color matching.

Add localizable labels for the color space definitions.

Change-Id: I9857c03604ddf0e89fbea74a2d67fec13a425e67
Resolves: #70946
Releases: master
Reviewed-on: https://review.typo3.org/44220
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/filemetadata/Configuration/TCA/Overrides/sys_file_metadata.php
typo3/sysext/filemetadata/Resources/Private/Language/locallang_tca.xlf

index f540179..beb5599 100644 (file)
@@ -387,12 +387,13 @@ $tca = array(
                 'renderType' => 'selectSingle',
                 'items' => array(
                     array('', ''),
-                    array('RGB', 'RGB'),
-                    array('CMYK', 'CMYK'),
-                    array('CMY', 'CMY'),
-                    array('YUV', 'YUV'),
-                    array('Grey', 'grey'),
-                    array('indexed', 'indx'),
+                    array('LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.RGB', 'RGB'),
+                    array('LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.sRGB', 'sRGB'),
+                    array('LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.CMYK', 'CMYK'),
+                    array('LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.CMY', 'CMY'),
+                    array('LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.YUV', 'YUV'),
+                    array('LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.grey', 'grey'),
+                    array('LLL:EXT:filemetadata/Resources/Private/Language/locallang_tca.xlf:sys_file_metadata.color_space.indx', 'indx'),
                 ),
                 'default' => '',
                 'readOnly' => true,
index 31977a1..b97c4f4 100644 (file)
                        <trans-unit id="sys_file_metadata.color_space">
                                <source>Color Space</source>
                        </trans-unit>
+                       <trans-unit id="sys_file_metadata.color_space.RGB">
+                               <source>RGB</source>
+                       </trans-unit>
+                       <trans-unit id="sys_file_metadata.color_space.sRGB">
+                               <source>sRGB</source>
+                       </trans-unit>
+                       <trans-unit id="sys_file_metadata.color_space.CMYK">
+                               <source>CMYK</source>
+                       </trans-unit>
+                       <trans-unit id="sys_file_metadata.color_space.CMY">
+                               <source>CMY</source>
+                       </trans-unit>
+                       <trans-unit id="sys_file_metadata.color_space.YUV">
+                               <source>YUV</source>
+                       </trans-unit>
+                       <trans-unit id="sys_file_metadata.color_space.grey">
+                               <source>Grey</source>
+                       </trans-unit>
+                       <trans-unit id="sys_file_metadata.color_space.indx">
+                               <source>Indexed</source>
+                       </trans-unit>
                        <trans-unit id="sys_file_metadata.pages">
                                <source>Number of Pages</source>
                        </trans-unit>