Problem/Motivation

We have a bilingual setup with English as the site default language but German as the primary content language. Default content consists of nodes, terms, and menu links.

We noticed some confusion amongst our editors trying to edit untranslatable fields in the German translation, therefore we decided to swap the default content translations and make the German version the entities' default language.

Looking into the exported yml files, language settings are as intended:

  • default_langcode: de
  • content_translation_source: de

However, after import during site-install, all imported entities are set to English.

Translated entities or untranslated non-English entities - no difference.

I counter-tested with the default language set to German on site-install which results in imported content in German. This makes me wonder if the translation source is being assumed instead of being explicitely handled. Possible?

Steps to reproduce

  1. Install a second language (but leave English as default)
  2. Create a node in the secondary language
  3. Export
  4. Delete that node
  5. Import
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hexabinaer created an issue. See original summary.

tobiasb made their first commit to this issue’s fork.

tobiasb’s picture

Status: Active » Needs review

The combined condition can not be used here.

When the language is installed, then all is fine.

Only in case the language is not installed then try to find another installed language or use default language.

hexabinaer’s picture

Status: Needs review » Reviewed & tested by the community

berdir made their first commit to this issue’s fork.

berdir’s picture

Status: Reviewed & tested by the community » Needs work

Tests seem to be failing.