[FEATURE] Enable frontend to show translated file metadata 66/24766/4
authorSteffen Ritter <info@rs-websystems.de>
Mon, 14 Oct 2013 21:20:02 +0000 (23:20 +0200)
committerErnesto Baschny <ernst@cron-it.de>
Tue, 15 Oct 2013 16:39:12 +0000 (18:39 +0200)
commit0d69f740086120ffee7409001f7090520ab9734c
treece2bd6af189d09d46801acf7e746760255e8de80
parent30cb4ed2be258755d75dd5ed268bca5a7f99db73
[FEATURE] Enable frontend to show translated file metadata

The frontend should show translated file metadata.
Since translation is not the concern of a file abstraction
layer and the FAL does not know about frontend language
settings this concern has to be decoupled.

For that purpose the MetaDataRepository has been extended
with an signal which is fired before the metadata-record
is returned. In Frontend-Context a Slot is registered
which passes that record through the according functionality
in \TYPO3\CMS\Frontend\Page\PageRepository::getRecordOverlay
so that a clean language and workspace overlay happen
according to the settings of TSFE.

Releases: 6.2
Resolves: #52818
Change-Id: I7b7791abd63d2a69480ed31861c63de1585a569c
Reviewed-on: https://review.typo3.org/24766
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Reviewed-by: Fabien Udriot
Reviewed-by: Francois Suter
Tested-by: Francois Suter
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php
typo3/sysext/frontend/Classes/Aspect/FileMetadataOverlayAspect.php [new file with mode: 0644]
typo3/sysext/frontend/Classes/Page/PageRepository.php
typo3/sysext/frontend/ext_localconf.php [new file with mode: 0644]