Make the content translation overview alterable by multiple modules

Created on 6 October 2014, about 10 years ago
Updated 15 January 2024, 11 months ago

Problem/Motivation

Currently, the Content Translation Controller generates a table to display the status of translations for a content entity.

Because this is not rendered in a form, there is nothing to hook into in order to modify this form; so changing the content of the Translate page is only possible by altering the route for the following method:

\Drupal\content_translation\Controller\ContentTranslationController::overview

When more than one contributed module does this, the modules are no longer compatible and so become mutually exclusive. It would be good for the Lingotek module, the TMGMT module, and any other module that would like to modify translation pages for content entities to be able to do so without having to exclude each other in a given Drupal instance.

Proposed resolution (some ideas)

  1. One idea is to create a hook somewhere for modifying the page. (There does not seem to be a clear place for this that would allow all elements of the page to be changed.)
  2. Another idea is to convert this page to a form, or else to provide an empty form that could be manipulated by multiple modules.

Remaining tasks

1. Decide on an approach that could let multiple modules modify the page.
2. Write a patch.
3. Review and test.

User interface changes

TBD

API changes

TBD

📌 Task
Status

Needs work

Version

10.0

Component
Content translation 

Last updated 2 days ago

No maintainer
Created by

🇺🇸United States robertdbailey

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

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