Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Ready for review

93838[FEATURE] Translate forms in the backend

Josua Vogel CR 0 V 0 Nightmare +3912 −163 updated 11/19/26, 16:41

Commit message

Add a translation workflow for database-stored EXT:form definitions in
the Form Editor. Editors can select an available site language and
translate labels and other textual properties without leaving the
editor.

The editor shows the default-language value as a read-only reference
and prevents structural changes while translating. This includes
adding, removing, sorting, moving, or dragging form elements,
validators and finishers. Fields marked with l10nMode "exclude" remain
unavailable for translation. Saving a translation enforces the same on
the server: only properties of translatable inspector editors are
stored, and no keys the default-language form does not have.

Add dedicated save handling and feedback for translations in the Form
Editor. The Form Manager now exposes the translation status for every
available language.

Store translations as localized form_definition records holding an
overlay of the translated values, and merge it with the current
default-language definition when forms are rendered in the frontend.
Forms are not bound to a site, so a translation applies to every site
using its language ID, as for translated file metadata. File-based
forms keep using XLIFF files.

Add the form_definition localization TCA and cover translation
persistence, overlay processing, storage reads, and controller
integration with unit and functional tests.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 31
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/38/93838/31 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/38/93838/31 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Issues 1

Files 85

Show 65 more files

Review log 4071

Show 2546 earlier messages
  1. Josua Vogel uploaded patch set 1 04/24/26, 13:10

  2. core-ci voted on patch set 1 V -1 04/24/26, 13:26 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/101085

  3. Josua Vogel uploaded patch set 2 V -1 04/24/26, 13:31

  4. core-ci voted on patch set 2 V -1 04/24/26, 13:47 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/101088

  5. Josua Vogel uploaded patch set 3 V -1 04/24/26, 15:12

  6. core-ci voted on patch set 3 V -1 04/24/26, 15:28 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/101096

  7. Josua Vogel uploaded patch set 4 V -1 04/24/26, 15:53

  8. core-ci voted on patch set 4 V -1 04/24/26, 16:07 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/101099

  9. Josua Vogel uploaded patch set 5 V -1 04/24/26, 18:05

  10. core-ci voted on patch set 5 V -1 04/24/26, 18:18 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/101102

  11. Josua Vogel uploaded patch set 6 V -1 05/14/26, 10:01

  12. core-ci voted on patch set 6 V -1 05/14/26, 10:13 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/102027

  13. Josua Vogel uploaded patch set 7 V -1 05/14/26, 10:43

  14. core-ci voted on patch set 7 V -1 05/14/26, 10:55 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/102028

  15. Josua Vogel uploaded patch set 8 V -1 05/14/26, 10:58

  16. core-ci voted on patch set 8 V -1 05/14/26, 11:10 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/102029

  17. Josua Vogel marked it work in progress 05/14/26, 18:02

  18. Josua Vogel uploaded patch set 9 V -1 09/04/26, 11:46

  19. core-ci voted on patch set 9 V -1 09/04/26, 12:01 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107865

  20. Josua Vogel uploaded patch set 10 V -1 09/04/26, 12:25

  21. core-ci voted on patch set 10 V -1 09/04/26, 12:33 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107870

  22. Josua Vogel uploaded patch set 11 V -1 09/04/26, 13:06

  23. core-ci voted on patch set 11 V -1 09/04/26, 13:13 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107874

  24. Josua Vogel uploaded patch set 12 V -1 09/04/26, 13:14

  25. Josua Vogel uploaded patch set 13 09/04/26, 13:16

  26. Josua Vogel uploaded patch set 14 09/04/26, 13:23

  27. core-ci voted on patch set 13 V -1 09/04/26, 13:24 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107876

  28. core-ci voted on patch set 12 V -1 09/04/26, 13:27 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107875

  29. core-ci voted on patch set 14 V -1 09/04/26, 13:32 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107877

  30. Josua Vogel uploaded patch set 15 V -1 09/04/26, 13:44

  31. Josua Vogel uploaded patch set 16 09/04/26, 13:46

  32. Josua Vogel uploaded patch set 17 09/04/26, 13:48

  33. Josua Vogel marked it ready for review 09/04/26, 13:48

  34. core-ci voted on patch set 15 V -1 09/04/26, 13:53 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107883

  35. core-ci voted on patch set 16 V -1 09/04/26, 13:55 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107884

  36. core-ci voted on patch set 17 V +1 09/04/26, 13:56 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107885

  37. Maike Kiebele commented on patch set 17 09/07/26, 09:32

    The preview in the BE doesn't show any translated content
  38. Josua Vogel uploaded patch set 18 V +1 09/26/26, 09:29

  39. Josua Vogel commented on patch set 18 09/26/26, 09:29

    Reply

    Done
  40. core-ci voted on patch set 18 V +1 09/26/26, 09:37 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109327

  41. Josua Vogel uploaded patch set 19 V +1 09/26/26, 10:01

  42. core-ci voted on patch set 19 V +1 09/26/26, 10:09 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109328

  43. Josua Vogel uploaded patch set 20 V +1 10/02/26, 13:20

  44. core-ci voted on patch set 20 V +1 10/02/26, 13:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109944

  45. Josua Vogel uploaded patch set 21 V +1 10/08/26, 06:13

  46. core-ci voted on patch set 21 V +1 10/08/26, 06:22 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110446

  1. Josua Vogel uploaded patch set 22 V +1 10/08/26, 07:11

  2. core-ci voted on patch set 22 V +1 10/08/26, 07:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110464

  3. Benni Mack commented on patch set 22 10/08/26, 19:40

    form_definition.php:43

    we have to fix this. It has to be unique, but probably unique-per-language
  4. Josua Vogel uploaded patch set 23 V +1 10/09/26, 06:50

  5. Josua Vogel commented on patch set 23 10/09/26, 06:50

    form_definition.php:43 Reply

    added unique again, thx. unique per language isn't necessary. I would say that unique and l10n_mode exclude mean unique in the default language and translations inherit this value.
  6. core-ci voted on patch set 23 V -1 10/09/26, 06:58 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110554

  7. Josua Vogel rebased onto patch set 24 V -1 10/09/26, 09:24

  8. core-ci voted on patch set 24 V +1 10/09/26, 09:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110574

  9. Lina Wolf commented on patch set 24 10/15/26, 11:04

    The form manual on main was re-indented in https://review.typo3.org/c/Packages/TYPO3.CMS/+/96702 (two spaces after "..", 4-space levels, headline levels). This change will probably conflict in typo3/sysext/form/Documentation when rebased. The script used for the conversion can help to bring new text into the same format; ask me if you need it.
  10. Josua Vogel uploaded patch set 25 V +1 10/15/26, 21:01

  11. Josua Vogel uploaded patch set 26 10/15/26, 21:06

  12. core-ci voted on patch set 25 V -1 10/15/26, 21:43 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111267

  13. core-ci voted on patch set 26 V -1 10/15/26, 21:49 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111281

  14. Josua Vogel uploaded patch set 27 V -1 10/15/26, 21:56

  15. core-ci voted on patch set 27 V +1 10/15/26, 22:12 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111285

  16. Josua Vogel uploaded patch set 28 V +1 11/15/26, 17:07

  17. core-ci voted on patch set 28 V +1 11/15/26, 17:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114554

  18. Dennis Purisevic commented on patch set 28 11/16/26, 13:47

    The feature looks and feels pretty solid, but there is a problem with having two sites with different language setups. **Site 1** English [0] Französisch [1] **Site 2** Deutsch [0] English [2] **Problem** What is now the default language for the form? Since forms are saved on `pid 0`, there is no connection to a site, and therefore it can be any language with `language id 0`. I don’t know if a form will be used cross-site, since we’ve updated forms to be site-specific, but if it’s possible for the user to configure this, it must be handled by the system. **Possible solution** Maybe the form can first be created for a specific language, and then a translation can be created, like in the site configuration, where the user has a dropdown.
  19. Josua Vogel uploaded patch set 29 V +1 11/17/26, 18:32

  20. Josua Vogel commented on patch set 29 11/17/26, 18:33

    Reply

    Forms live on pid 0 and are not bound to a site, so – like translated file metadata – a translation is keyed by language ID across the installation. This is now documented in the changelog and the manual; binding forms to a site would be a separate feature.
  21. core-ci voted on patch set 29 V +1 11/17/26, 18:41 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114776

  22. Josua Vogel uploaded patch set 30 V +1 11/17/26, 18:41

  23. core-ci voted on patch set 30 V +1 11/17/26, 18:50 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114777

  24. Josua Vogel uploaded patch set 31 V +1 11/19/26, 16:35

  25. core-ci voted on patch set 31 V +1 11/19/26, 16:41 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115027