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

-

Members fund testing for the Drupal project. Drupal Association Learn more

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.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.