Issue Bug Closed

#102059Translate Button in PageLayoutView for deleted Translations in Workspace

Achim Fritz 09/28/23, 10:38 updated 08/12/25, 14:35

Description

Having:
  • live Workspace: create Content Element in default language
  • live Workspace: translate this Content Element
  • switch to a draft Workspace
  • draft Workspace: edit default Content Element
  • draft Workspace: delete translated Content Element

The Translate Button in den PageLayout View should not be displayed, as the Record is neither found by Localize-Wizard nor in translateable when edit default Language Record

Screenshot 2023-09-28 at 12.27.58
clipboard-202309281228-b82ud.png

Screenshot 2023-09-28 at 12.29.29
clipboard-202309281229-9yytl.png

Screenshot 2023-09-28 at 12.30.00
clipboard-202309281230-ilxar.png

Database:

MariaDB [db]> select uid,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,header from tt_content;
+-----+------------------+-------------+------------+-------------+-----------------------+
| uid | sys_language_uid | l18n_parent | t3ver_wsid | t3ver_state | header                |
+-----+------------------+-------------+------------+-------------+-----------------------+
|   1 |                0 |           0 |          0 |           0 | t1                    |
|   2 |                1 |           1 |          0 |           0 | [Translate to de:] t1 |
|   3 |                0 |           0 |          1 |           0 | t1 ws                 |
|   7 |                1 |           1 |          1 |           2 | [Translate to de:] t1 |
+-----+------------------+-------------+------------+-------------+-----------------------+

(Note t3ver_state=2 (Deleted Placeholder) of uid translated Content Element in Draft Workspace)

Testet with TYPO3 12 and 11

Reviews 6

Files 3

History 720

  1. Stefan Bürk commented <span data-processor="relativetime" data-value="2023-09-28T14:45:08+00:00" > 09/28/23, 14:45 </span>

    I guess we need to talk about some UX then here. If no elements are left for a language,
    and no translate button shown this may confuse some editors eventually. Specially, if the
    have not deleted it in the workspace itself. At least in a long term.

  2. Achim Fritz commented <span data-processor="relativetime" data-value="2023-09-28T15:58:58+00:00" > 09/28/23, 15:58 </span>

    maybe a flashMessage, with a warning would help? (editors have to go to WS-Module and undelete the deleted translation, instead of try to start a localization process)

  3. Christian Kuhn commented <span data-processor="relativetime" data-value="2025-01-27T13:57:24+00:00" > 01/27/25, 13:57 </span>

    Note using the translate button and going through it, fails in step 3 with “never ending load indicator” since the JS side does not act upon the server side http 400 from LocalizationController->localizeRecords() well.

  4. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-01-28T12:45:09+00:00" > 01/28/25, 12:45 </span>

    Applied in changeset commit:398c41c4bd788dfe321d6cbcb935fe4df97ed1a3.