Bug #93025
openFile metadata are not translated in the free mode
0%
Description
Problem:¶
File metadata are by default retrieved in a default language or "All languages" (see MetaDataRepository). This makes it impossible to get a translation when the fallbackType is set to free.
Steps to reproduce:¶
- Create an empty TYPO3
- Create a site with at least 2 languages and set fallbackType to free
- Add a file with metadata translations
- Show file metadata in non-default language in the frontend
Result:¶
Metadata are always in a default language
Updated by ondro no-lastname-given over 3 years ago
Hello Michal,
Have you found a solution for this, we're struggling with the same bug as well
Updated by ondro no-lastname-given over 3 years ago
ondro no-lastname-given wrote in #note-2:
Hello Michal,
Have you found a solution for this, we're struggling with the same bug as well
We've used exiting event listener in MetaDataRepository to fix this issue.
Looks like problem is in query performed in findByFileUid https://github.com/TYPO3/TYPO3.CMS/blob/7aad9f6dea9246a1cc64f1b076e106605db3e04c/typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php#L105 where only sys_language_uid in [0,-1] are fetched
Updated by Alexander Stehlik almost 3 years ago
Hi there,
for everyone having this problem in TYPO3 9:
You can checkout https://github.com/Intera/typo3-extension-storagefixes which contains a workaround.
Cheers
Alex
Updated by Simon Gilli almost 3 years ago
- Related to Bug #52816: Make sys_file_metadata and sys_file_references table translatable added
Updated by Gerrit Code Review almost 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72015
Updated by Gerrit Code Review almost 3 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72015
Updated by Gerrit Code Review almost 3 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72015
Updated by Gerrit Code Review almost 3 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72015
Updated by Gerrit Code Review almost 3 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72015
Updated by Gerrit Code Review almost 3 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72015
Updated by Gerrit Code Review almost 3 years ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72015
Updated by Vladimir Falcon about 2 years ago
I was wondering what can I do to help you to get this patch merge in to the TYPO3 Core. I am already using it in TYPO3 V10 (PSR-14) and it works exactly as expected. Please let me know if I can be of any help.
Updated by Anonymous about 2 years ago
You can review the patch and tell that you verified the functionality.
Aynway, the patch contains an unresolved merge conflict. I don't know what else is needed here to getting this merged...
Updated by Gerrit Code Review over 1 year ago
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72015
Updated by Benni Mack about 1 year ago
- Status changed from Under Review to Accepted
Patch wasnt updated in the past year, so the issue is changed to accepted.
Updated by Bernhard Eckl 8 months ago
Same issue here with TYPO3 11. I applied the patch for FileMetadataOverlayAspect.php: works. Please apply the patch to at least TYPO3 11 soon.
Updated by Yohann CERDAN 10 days ago
- TYPO3 Version changed from 10 to 12
Same issue here with TYPO3 12. I applied the patch for FileMetadataOverlayAspect.php and it works.