Unpublish all language instances of an entity

Created on 19 January 2018, almost 7 years ago
Updated 18 April 2024, 8 months ago

Our project contains 2 languages, german and english. There is a vocabulary "Channel". We now would like to have a channel term that has a translation but also both language instances should be unpublished.

When trying to unpublish the translated term the status field is disabled with a description showing: "Only this translation is published. You must publish at least one more translation to unpublish this one.".
Also in code there is a comment saying: "If there is only one published translation we cannot unpublish it, since there would be nothing left to display."

Can anyone explain the deeper reasons for this to me? I don't understand why one would not want to unpublish all language instances of a given term.

Common Use Case: An editor wants to unpublish all translations of a taxonomy term so that the term is no longer visible to anonymous traffic for any language.
This use case can occur for any non-node entity type, for example: taxonomy_term, media, block_content, menu link, group β†’ . Core handles nodes the way that you would expect - the translation status is inherited from the entity status.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
Content translationΒ  β†’

Last updated 2 days ago

No maintainer
Created by

πŸ‡©πŸ‡ͺGermany lucastockmann

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States recrit

    I have ran into this multiple times as well.
    Common Use Case: An editor wants to unpublish all translations of a node so that the page is no longer visible to anonymous traffic for any language.

    Can a core maintainer weigh in on the logic behind this?
    Form description: "Only this translation is published. You must publish at least one more translation to unpublish this one."
    Code comment in "core/modules/content_translation/src/ContentTranslationHandler.php":

          // If there is only one published translation we cannot unpublish it,
          // since there would be nothing left to display.
    

    - "nothing left to display": that is the goal for the use case mentioned above. Users that can view unpublished content will still be able to view it.

  • πŸ‡ΊπŸ‡ΈUnited States recrit
  • πŸ‡ΊπŸ‡ΈUnited States recrit
  • First commit to issue fork.
Production build 0.71.5 2024