This project is not covered by Drupal’s security advisory policy.

TMGMT Preserve Translations keeps existing translations of unchanged source text when content is sent for translation again through the Translation Management Tool.

By default, TMGMT translates every segment of a content item each time a job is requested, and overwrites the whole translation when the job is accepted. Edits made by hand after the last job are lost without warning, and unchanged text is sent to the translator, and paid for, again.

Features

  • Keeps unchanged segments: segments whose source text did not change since the last accepted job are not sent to the translator and are not overwritten. This works with any translator plugin.
  • Protects manual edits: a translation edited by hand is kept. When its source text changes later, the segment is marked as a conflict and the reviewer chooses which text to save.
  • Supports content moderation: when a translation has an unpublished draft, the reviewer chooses between the new translation, the published text and the draft text, so the draft is never replaced without a choice.
  • Handles Paragraphs: embedded entities are matched by ID, so adding, removing or reordering paragraphs does not cause new translations.
  • Clear review: status badges (New, Changed, Conflict, Draft differs) on each segment, and a panel listing the kept segments, which reviewers can override.
  • Ignores markup reformatting: texts are compared after normalizing HTML and whitespace, so a text editor that saves the same markup differently does not count as an edit.
  • Respects access rules: overrides follow text format permissions, and draft texts are shown only to users who can view the draft.

Requirements

Configuration

Go to Administration » Translation » Preserve translations to turn the behavior on or off and to choose whether the panel of kept segments starts expanded.

Limitations

  • Only content entity sources are supported.
  • Translations created outside TMGMT have no earlier job to compare with, so the first job after them translates every segment.

Project information

Releases