node preview translation needs to get translation of entity if it hasTranslation

Created on 11 June 2020, about 4 years ago
Updated 9 April 2024, 5 months ago

with just core:
Steps to reproduce: French term label in German preview

  1. Install drupal in French
  2. add Deutsch
  3. enable content_translation
  4. edit the article content type, enable translation
  5. make sure the content type has a taxonomy term reference to tags vocabulary
  6. enable translation of tags vocabulary
  7. add a term such as Français, translate it to Deutsch
  8. select add an article content and select the term Français
  9. press the preview button
  10. tags label shows up as Français
  11. change the language prefix of that preview page to de (deutsch)
  12. taxonomy term shows up as Français, expected Deutsch

see screenshots
Français preview

Deutsch preview

OR

OR, preferred testing method: use the entity_translation_unified_form module:

  1. Install the entity_translation_unified_form module (latest dev release) (screenshot)
  2. configure default language and another language or as many languages as you like.
  3. refer to the README in the etuf module on configuration.
  4. Properly configured example looks something like this screenshot for this step: (VERY COOL).
  5. Press the drupal core provided preview button, then switch to the other language.

With core patch enabled, correct language preview shows up, without core patch, default language shows up regardless of what the interface language is

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Node system 

Last updated 1 minute ago

No maintainer
Created by

🇨🇦Canada joseph.olstad

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

    Moving to NW for the tests. Will post in the #testing slack channel if there is anyone interested in taking a look too.

  • Status changed to Closed: duplicate 5 months ago
  • Status changed to Needs work 5 months ago
  • 🇨🇦Canada joseph.olstad

    Sorry that wasn't a duplicate issue. This issue is for core, the other is for contrib.

    This patch/fix is still needed.

Production build 0.71.5 2024