Currently always all medias are shown. So a translated media will show every translation. I would suggest to follow media libraries approach: 8.8 Change record

So, Introduce an exposed filter for the language in the media overview (directory_browser). And show the medias once, by interface language falling back to the sites default language or even better the translation source language (media_browser). See also #2451657: Views should not condition joins on the langcode of fields that are not translatable / https://drupal.stackexchange.com/questions/236541/multilingual-views-hid...

CommentFileSizeAuthor
#5 3100447-multilingual_handling-5.patch12.58 KBytsurk

Comments

ytsurk created an issue. See original summary.

ytsurk’s picture

Issue summary: View changes
ytsurk’s picture

Issue summary: View changes
ytsurk’s picture

Issue summary: View changes
ytsurk’s picture

Status: Active » Needs review
StatusFileSize
new12.58 KB

Here a draft of the language handling. It provides a button to the translations, hides the langcode field on the EditForm and provides an update hook for the view.

ytsurk’s picture

Status: Needs review » Fixed

  • ytsurk committed b208b5c on 8.x-1.x
    Issue #3100447 by ytsurk: Filter by language
    

  • ytsurk committed 349f22f on 8.x-1.x
    Issue #3100447 by ytsurk: Make the translations discovery also work with...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.