From 9004688d03aeeea3b44abfa196f7f6209a71afb1 Mon Sep 17 00:00:00 2001
From: Frans Saris <franssaris@gmail.com>
Date: Fri, 2 Oct 2015 10:43:29 +0200
Subject: [PATCH] [BUGFIX] Show correct sys_file_reference palettes for
 textmedia

Resolves: #70299
Releases: master
Change-Id: I7d4a6e23afa972b14aba37701470b7bd8ed7110f
Reviewed-on: http://review.typo3.org/43733
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
---
 typo3/sysext/frontend/Configuration/TCA/tt_content.php | 4 ++--
 typo3/sysext/lang/locallang_tca.xlf                    | 6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/frontend/Configuration/TCA/tt_content.php b/typo3/sysext/frontend/Configuration/TCA/tt_content.php
index 1eb6ef1d9aa7..0970492b79f8 100644
--- a/typo3/sysext/frontend/Configuration/TCA/tt_content.php
+++ b/typo3/sysext/frontend/Configuration/TCA/tt_content.php
@@ -457,12 +457,12 @@ return array(
 					),
 					\TYPO3\CMS\Core\Resource\File::FILETYPE_AUDIO => array(
 						'showitem' => '
-							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
+							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.audioOverlayPalette;audioOverlayPalette,
 							--palette--;;filePalette'
 					),
 					\TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO => array(
 						'showitem' => '
-							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,
+							--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.videoOverlayPalette;videoOverlayPalette,
 							--palette--;;filePalette'
 					),
 					\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => array(
diff --git a/typo3/sysext/lang/locallang_tca.xlf b/typo3/sysext/lang/locallang_tca.xlf
index 0b98fd9d1241..c6b6e35e8c5c 100644
--- a/typo3/sysext/lang/locallang_tca.xlf
+++ b/typo3/sysext/lang/locallang_tca.xlf
@@ -537,6 +537,12 @@
 			<trans-unit id="sys_file_reference.imageoverlayPalette">
 				<source>Image Metadata</source>
 			</trans-unit>
+			<trans-unit id="sys_file_reference.audioOverlayPalette">
+				<source>Audio Metadata</source>
+			</trans-unit>
+			<trans-unit id="sys_file_reference.videoOverlayPalette">
+				<source>Video Metadata</source>
+			</trans-unit>
 			<trans-unit id="sys_file_reference.title">
 				<source>Title</source>
 			</trans-unit>
-- 
GitLab