Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

translation_owner

3 sites No security coverage
View on drupal.org

Overview

The Translation Owner Manager module provides tools to manage the ownership (UID) of translated nodes in Drupal. It is particularly useful for content managers or developers who need to bulk edit or programmatically update the owner of translated content.

This module includes Drush commands for streamlined command-line execution.

Features

  • Drush Commands:
    • Update the owner (UID) of a single node translation.
    • Perform bulk updates of translation owners using a CSV file.
  • Fully compatible with Drush 11 and PHP 8.

Requirements

  • Drupal 9.4 or later.
  • Drush 11 or later.
  • PHP 8.0 or later.

Installation

  1. Download the module via Composer:
    composer require drupal/translation_owner
  2. Enable the module:
    drush en translation_owner
  3. Clear Drush cache to register the commands:
    drush cache:clear drush

Usage

Single Translation Update

To update the owner (UID) of a specific node translation, use the following Drush command:


drush translation-owner:update-uid <nid> <langcode> <new_uid>

Example:

drush translation-owner:update-uid 113486 fr 28716

This updates the French translation of node 113486 to have user ID 28716 as its owner.

Bulk Translation Update

To update multiple translations via a CSV file:

  1. Prepare a CSV file with the following structure:
    nid,langcode,new_uid
    123,en,5
    456,fr,8
  2. Run the bulk update command:
    drush translation-owner:bulk-update /path/to/file.csv

Note: The CSV file must contain a header row with nid, langcode, and new_uid columns.

Command Aliases

For convenience, the following aliases are available:

  • translation-owner:update-uid: Aliases tou, translation-owner-update.
  • translation-owner:bulk-update: Aliases toub, translation-owner-bulk.

Developer Notes

Extending the Module

If you wish to extend the module or integrate it with custom workflows:

  • Commands are defined in the \Drupal\translation_owner\Commands\TranslationOwnerCommands class.
  • Dependencies are injected via the translation_owner.services.yml file.

Debugging

If commands do not appear, ensure you clear Drush cache:

drush cache:clear drush

Support

This module is maintained by the Drupal community. Please report issues in the Drupal.org issue queue.

Sponsored by https://landportal.org

Activity

Total releases
2
First release
Aug 2025
Latest release
7 months ago
Release cadence
17 days
Stability
100% stable

Releases

Version Type Release date
1.0.3 Stable Sep 2, 2025
1.0.2 Stable Aug 16, 2025