[FEATURE] Add translation params for category
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Category / CategoryRegistry.php
index 933ed53..cdb6a14 100644 (file)
@@ -311,6 +311,8 @@ class CategoryRegistry implements SingletonInterface {
         *              + fieldConfiguration: TCA field config array to override defaults
         *              + label: backend label of the categories field
         *              + interface: boolean if the category should be included in the "interface" section of the TCA table
+        *              + l10n_mode
+        *              + l10n_display
         * @return void
         */
        protected function addTcaColumn($tableName, $fieldName, array $options) {
@@ -338,6 +340,13 @@ class CategoryRegistry implements SingletonInterface {
                                ),
                        );
 
+                       if (isset($options['l10n_mode'])) {
+                               $columns[$fieldName]['l10n_mode'] = $options['l10n_mode'];
+                       }
+                       if (isset($options['l10n_display'])) {
+                               $columns[$fieldName]['l10n_display'] = $options['l10n_display'];
+                       }
+
                        // Register opposite references for the foreign side of a relation
                        if (empty($GLOBALS['TCA']['sys_category']['columns']['items']['config']['MM_oppositeUsage'][$tableName])) {
                                $GLOBALS['TCA']['sys_category']['columns']['items']['config']['MM_oppositeUsage'][$tableName] = array();