Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 301855

Entity references should be displayed translated on non translatable entity types

$
0
0

Problem/Motivation

This is related to #2543258: Entity references of untranslatable fields are not displayed in the correct translation. It's correct that entity references of untranslatable fields should get displayed in the correct translation according to the user language on translatable entities.

When viewing untranstatable entities though, i would expect to see the translated references according to the global language.

How to re-produce this:

  1. Enable the content_translation
  2. Add a new language to the site
  3. Make the tags vocabulary translatable
  4. Add one or 2 terms and translate them
  5. Make sure the node type article is not translatable (default)
  6. Create a node and refer the translated terms
  7. Access the node in both languages and see that the tags are always rendered in the default language

Proposed resolution

Check whether the containing entity type/ bundle is translatable and display the reference's translations according to the global language.


Viewing all articles
Browse latest Browse all 301855

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>