The view used in media browser is using currently interface language to show media label. In some cases interface and content language settings can be separate and when adding a translation, the media items in browser are not in same language.
The better way would be to use content language, which would show media labels in same language with content being edited.

CommentFileSizeAuthor
use-content-language.patch1.79 KBrang501

Comments

rang501 created an issue. See original summary.

ytsurk’s picture

Hey rang501, long time not heard ;)

I can understand this request, but do you really want to have a different behavior than core's media library widgets?

It's quite common in Drupal, then when you edit, you see the label in your UI language, instead of the one the currently being edited content is in ...

This seems to me more like a custom feature for a special site ;)
We could document this, as you "only" have to change the view's rendering language, which is done in 3 clicks ..

rang501’s picture

If the core itself is using interface language, then I'm not sure it's correct - I think the media entities are content and the content translation rules should apply them.
So - if I happen to add russian translation and I need to select some media for it, I would expect seeing media items in russian in media library. Currently, if the UI language is english, the library shows items in english which is a bit confusing. If the media is selected for example in CKEditor, it will show with different label - which most likely will create some confusion.

This issue can be left open - maybe someone else still needed, or if the core should change something.

ytsurk’s picture

Category: Bug report » Feature request
Status: Needs review » Postponed

Our CKEditor integration should behave like the form widget .. and it does for me, on a fresh umami install.

/es/node/19/translations/add/en/es shows me interface and medias (field widget and our CKEditor integration) in spanish
/en/node/19/translations/add/en/es shows me interface and medias (field widget and our CKEditor integration) in english

What do you mean by media is selected in CKEditor? Can you tell me how to reproduce?

ytsurk’s picture

rang501’s picture

Status: Postponed » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.