Bug #93025

File metadata are not translated in the free mode

Added by Michal Majernik 12 months ago. Updated 5 days ago.

Status:
Under Review
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

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

Actions
#1

Updated by Michal Majernik 12 months ago

  • Description updated (diff)
#2

Updated by ondro no-lastname-given 6 months ago

Hello Michal,

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

#3

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

#4

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

#5

Updated by Simon Gilli about 1 month ago

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

Updated by Tobias Gaertner about 1 month ago

Still present in TYPO3 11.5.1

#7

Updated by Gerrit Code Review about 1 month 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

#8

Updated by Gerrit Code Review about 1 month 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

#9

Updated by Gerrit Code Review about 1 month 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

#10

Updated by Gerrit Code Review about 1 month 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

#11

Updated by Gerrit Code Review about 1 month 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

#12

Updated by Gerrit Code Review 16 days 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

#13

Updated by Gerrit Code Review 5 days 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

Also available in: Atom PDF