Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Goal of this module

This provides an alternative way of linking translations to different languages, to prevent the need to maintain 3 different translations containing the exact same content.

This provides a way to configure a translation to inherit the content from any other existing translation.
This could also work recursively, for example:
- en
--- en-GB
----- en-HK
--- en-US
----- en-MX

All the en-* languages listed above inherit the content from the 'en'-source node.

Before, this would often be done with the language_hierarchy module which works great, but that's only a one way street. The hierarchy would be the same for all nodes, whereas with this module the translations could go in any direction.

This module can be configured to apply to any content entity, not just nodes.

Limitations/shortcomings
One downside is that translations still need to be added (you configure the translation, not the entity type).

It only applies to entities, not custom controllers/pages.

Configuration
Enable the module and navigate to Admin > Configuration > Content authoring > Translation Inheritance settings.
Here you'll find a list of content entity types and their bundles. You can enable individual entity types and bundles.

Once you save this page, a locked field will be added to that entity type/bundle combination, after which you still have to enable it on the form display.

Once enabled on the form display, you can translate an entity of that entity type, and all existing translations should be visible in the "Inherit translation from" field.

Metatags
There is support for metatags on canonical pages. To retrieve values from the actual translation (not the source translation), these are stored within the "original" entity object.
For example, to retrieve the real URL of the translated node, [node:url] should become [node:original:url]

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
9
Tracked since
Sep 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.0-beta6 Pre-release Feb 16, 2024
1.0.0-beta5 Pre-release Feb 6, 2024
1.0.0-beta3 Pre-release Sep 28, 2023
1.0.0-beta2 Pre-release Sep 28, 2023
1.0.0-beta1 Pre-release Sep 28, 2023
1.0.0-alpha3 Pre-release Sep 25, 2023
1.0.0-alpha2 Pre-release Sep 25, 2023
1.0.0-alpha1 Pre-release Sep 23, 2023
1.0.x-dev Dev Sep 22, 2023