Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Translation Owner

No security coverage Maintenance fixes only 1 sites

This module provides tools to manage the owner of translated content. It allows you to update the owner of individual translations or perform bulk updates using a CSV file.

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

Drupal 9–10 · not 11

Ask your assistant about Translation Owner

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • content_translation Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.3 Stable 9–10 Sep 2, 2025
1.0.2 Stable 9–10 Aug 16, 2025
1.0.1 Stable 9–10 Nov 25, 2024
1.0.x-dev Dev 9–10 Nov 25, 2024