Project

General

Profile

Actions

Bug #93025

open

File metadata are not translated in the free mode

Added by Michal Majernik over 3 years ago. Updated 3 months ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2020-12-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
sys_file_metadata, free FallbackType, translation
Complexity:
Is Regression:
Sprint Focus:

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:

  1. Create an empty TYPO3
  2. Create a site with at least 2 languages and set fallbackType to free
  3. Add a file with metadata translations
  4. Show file metadata in non-default language in the frontend

Result:

Metadata are always in a default language


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #52816: Make sys_file_metadata and sys_file_references table translatableClosedSteffen Ritter2013-10-14

Actions
Actions #1

Updated by Michal Majernik over 3 years ago

  • Description updated (diff)
Actions #2

Updated by ondro no-lastname-given almost 3 years ago

Hello Michal,

Have you found a solution for this, we're struggling with the same bug as well

Actions #3

Updated by ondro no-lastname-given almost 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

Actions #4

Updated by Alexander Stehlik over 2 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

Actions #5

Updated by Simon Gilli over 2 years ago

  • Related to Bug #52816: Make sys_file_metadata and sys_file_references table translatable added
Actions #6

Updated by Anonymous over 2 years ago

Still present in TYPO3 11.5.1

Actions #7

Updated by Gerrit Code Review over 2 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

Actions #8

Updated by Gerrit Code Review over 2 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

Actions #9

Updated by Gerrit Code Review over 2 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

Actions #10

Updated by Gerrit Code Review over 2 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

Actions #11

Updated by Gerrit Code Review over 2 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

Actions #12

Updated by Gerrit Code Review over 2 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

Actions #13

Updated by Gerrit Code Review over 2 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

Actions #14

Updated by Vladimir Falcon almost 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.

Actions #15

Updated by Anonymous almost 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...

Actions #16

Updated by Gerrit Code Review 12 months 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

Actions #17

Updated by Benni Mack 9 months ago

  • Status changed from Under Review to Accepted

Patch wasnt updated in the past year, so the issue is changed to accepted.

Actions #18

Updated by Bernhard Eckl 3 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.

Actions

Also available in: Atom PDF