Multi-lingual translation

Created on 6 April 2017, about 8 years ago
Updated 3 February 2025, 3 months ago

Hi,
I set a bilingual site and used field translation setting (node titles have been replaced).
When I update the existing node and saved it with original language, everything is fine. I got correct titles for both languages. However, when I update it with translated language and save it, the titles for both language are switched back to the original language.

For example:

I have a field call field_name, which is set to be translatable.

Auto label setting: [node:field-name] or [node: field_name]

When I create a node using 'Name1' as the value of the field_name (English as original language). I got node title Name1. When I translate the node to French and set the value of name field to 'Nom1', I get both English and French titles of 'Name1', which is not correct. When I update the English version, the English title is set to 'Name1', the French one is set to 'Nom1", which is correct. If I update the French version again, all titles are switched back to 'Name1' again.

I have checked the code of auto_entitylabel_entity_presave and found that the title_field of $entity is correct.

Could you please give me some hints so I can fix this?

Thanks,

peijun

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇨🇦Canada peijun

Live updates comments and jobs are added and updated live.
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.

Production build 0.71.5 2024