Fix for Translated Entities' Titles and Descriptions on Drupal Multilingual Site Overview Pages

Created on 9 February 2024, 10 months ago
Updated 12 February 2024, 10 months ago

Problem/Motivation

On multilingual Drupal site, entities' titles and descriptions on overview pages such as ( Content types, roles, vocabularies, menus, or views ) do not display in the active language but remain in the language they were created in, even after being translated.

Steps to Reproduce

  1. Create a multilingual Drupal site.
  2. Add content types, roles, vocabularies, menus, or views.
  3. Create titles and descriptions for these entities in one language.
  4. Translate the titles and descriptions of some of these entities.
  5. Switch to another language and observe that the titles and descriptions do not appear in the current language, but only in the original creation language.

Proposed Resolution

Implement a patch that ensures entities translations for titles and descriptions are correctly loaded and displayed on overview pages.

Patch

entities-translations.patch β†’

Remaining Tasks

- Peer review.
- Testing by the community.

Example Before Applying the Patch

Here are roles that were added in Arabic and translated into English, but the translations do not appear when viewing the English interface at /en/admin/people/roles:

After Applying the patch

Now, when viewing the same page after applying the patch:

Similar improvements can be seen across overview pages: Content Types, Roles, Vocabularies, Menus, or Views.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
Configuration entityΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ΈπŸ‡¦Saudi Arabia Abdullah97

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024