Display view fields in a language different form the language of the entity they came from

Created on 21 September 2023, over 1 year ago
Updated 23 October 2023, about 1 year ago

Problem/Motivation

Hello,

This is not an issue or a bug or even a feature request but rather a question/clarification request.

I have a multilingual site with many languages (more than 8) and media entries that are translatable in those languages. Some of the fields on the media entries are not translatable as they are entity references pointing to taxonomy vocabularies that provide categorization for those media entries.

Then there's a view (showing Fields - default translation filter = true and rendering language = content language for selected page) listing those media entries. The goal is to make the editing of those entries easier on the site maintainers as translating a hundreds of entries into 8 languages means editing thousands of entries. The taxonomy vocabularies themselves are translated, the view labels are translated, and the page on which this view is displayed is also translated in all languages. When a media entry does not exist in the current site language the default translation is shown leading to the taxonomy fields being displayed in the language of that default translation. Is there a way to display those fields in the current site language instead of the media entry language?

I am not familiar enough with views underlying mechanics to formulate what i believe i am seeking properly but this is what i currently believe i am trying to achieve: find a way to decouple field rendering language form the language of the entity these fields came from.

thanks in advance for reading this and for any hint anyone might provide

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ’¬ Support request
Status

Active

Version

10.0 ✨

Component
ViewsΒ  β†’

Last updated 2 days ago

Created by

πŸ‡±πŸ‡§Lebanon vitch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vitch
  • Drupal 9.3 is not supported, although the support request is probably not that specific.

  • πŸ‡±πŸ‡§Lebanon vitch

    I have found a way to achieve the desired result (and its silly not to have thought of this in first place). Language neutral content will have its fields that have translations in all languages (taxonomy references or text lists that are fully translated) show in the current language (label and content translated). The only restriction is that it does not allow to have this on partially translated entries. Its either no translation and fields will be properly translated or having translations and fields will be in the language of the current translation being displayed.

Production build 0.71.5 2024