Problem/Motivation

The labels of base fields that have overrides cannot be translated via UI. This makes it impossible to translate an entity form which shows some widgets of base fields; .e.g. I ran into this by not being able to translate "Authored by" or "Created on" on a node form.

Proposed resolution

* Make it translatable via the translation pages of their entity bundles, e.g. /admin/structure/types/manage/page/translate

Remaining tasks

* Finish patch.

User interface changes

* Some new translation options are available :-)

API changes

-

Data model changes

-

Comments

fago created an issue. See original summary.

fago’s picture

This does not seem to really easy. I've managed to get a working patch, but I ran into the following issues:
- I ran into some issues with translations not being picked up correctly *when* clearing cache via the admin menu tools *and* being on a translation language page. With a regular cache rebuild from API / drush cr this worked fine.
- After changing a translation there is still a cache rebuild needed afterwards - this needs to be detected and handled automatically.
- We should add some test coverage here.

fago’s picture

Status: Active » Needs review

Let's see what the testbot says.

swentel’s picture

I ran into some issues with translations not being picked up correctly *when* clearing cache via the admin menu tools *and* being on a translation language page

Maybe related with #2650434: Clearing cache via UI in translated language resets config translation of field labels to default language ? Not 100% sure, tricky stuff these config translations :)

Status: Needs review » Needs work

The last submitted patch, 2: d8_base_field_overrides.translation.patch, failed testing.