Auto Translation Settings can not handle different entity types with identical ids.

Created on 2 August 2025, 22 days ago

Problem/Motivation

If there are identical machine names in different entity types, the array_merge in Auto Translation Settings overwrites them, so that only one is left in the Auto Translation Settings form.

As a consequence, only one of them can be auto translated.

Steps to reproduce

Create for example a node type and a taxonomy and give them the same id. Open the Auto Translation Settings and only one of them will be listed.

If this one is marked and saved, only this entity type can be automatically translated.

Proposed resolution

Do you happen to work on this already?

If not, I could give it a shot. It is probably best to have a separate input field in the settings form for each entity type. I see two possible ways to handle this.

First, the scheme in auto_translation.schema.yml is extended and gets a new field for each entity type. In this case all of them must be checked in Utility.php for the auto translatable entity types.

Second all the entity specific arrays can be pulled together into one multidimensional array before saving. One sub - array per entity type. Then no change in the scheme is necessary. In this case, this multidimensional array must be pulled apart again in Utility.php to check for the auto translatable entity types.

In either of this two approaches, a migration from the old settings will be useful.

What do you think about this?

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

🇩🇪Germany Martin Mayer Germany and Philippines

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

Comments & Activities

Production build 0.71.5 2024