Translating unpublished content creates a published tranlsation

Created on 16 December 2024, 6 days ago

Problem/Motivation

  1. When I create unpublished content in one language and use the AI Translate sub-module to generate it in a different language, the content is immediately published.
  2. I can delete that published content, but when I return to the Translations tab, the content is still there.
  3. Normally I can delete a translation even if it's unpublished. When it has been translated by AI Translate, there is a message to say I can only delete published content, so this seems to be a conscious decision.
    The "Delete translation" action is only available for published translations.

These three issues seem related given the intentional message, so raising as a single issue.

If I manually unpublished that AI translated content and come back to the Translate tab, I can no longer delete it and the Translate tab looks like this (ignore the irrelevant checkbox here):

When I translate content "manually" (old school!) using Drupal core, I can delete unpublished content.

When using Core Translate the Translate tab looks like this:

This is on a Unami basic install. I am not using Drupal Workflows at this point.

Steps to reproduce

  1. Create content in English.
  2. Save as unpublished.
  3. Hit the Translate tab.
  4. Click the auto button for Spanish.
  5. The content is translated but is automatically published.
  6. If I delete that published AI translation, I see a warning and confirm the deletion of the Spanish translation, but when I return to the Translate tab, that translation is still listed and has not been deleted.

Proposed resolution

Mirror what core does with regards to status and the ability to delete revisions.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Other Submodules

Created by

🇬🇧United Kingdom dunx

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024