Review 14.3 Merged

94616[BUGFIX] Allow new domain syntax for resourceOverrides

Garvin Hicking CR +2 V +2 Hard +456 −206 updated 07/06/26, 06:57

Commit message

It is now possible to override a translation file by its
translation domain via
$GLOBALS['TYPO3_CONF_VARS']['LANG']['resourceOverrides'].

For this, the TranslationDomainResolver class is added
as a helper service class.

```
// Domain syntax
$GLOBALS['TYPO3_CONF_VARS']['LANG']['resourceOverrides']['core.common'][]
  = 'EXT:my_extension/Resources/Private/Language/locallang_common_override.xlf';

// Language-specific override with domain syntax
$GLOBALS['TYPO3_CONF_VARS']['LANG']['resourceOverrides']['de']['core.common'][]
  = 'EXT:my_extension/Resources/Private/Language/de.locallang_common_override.xlf';
```

The internal `vendor/bin/typo3 language:domain:list` command receives
a `--show-overrides` flag to reveal this information.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 2

Files 18

Review log 915

  1. Garvin Hicking commented on patch set 1 06/29/26, 17:05

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 06/29/26, 17:15 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104053

  3. Garvin Hicking commented on patch set 2 V +1 07/03/26, 14:20

    Cherry Picked from branch main. The following files contain Git conflicts: * typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php
  4. Garvin Hicking commented on patch set 3 07/03/26, 14:24

    Published edit on patch set 2.
  5. core-ci voted on patch set 2 V -1 07/03/26, 14:40 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104298

  6. core-ci voted on patch set 3 V -1 07/03/26, 15:05 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104299

  7. Garvin Hicking commented on patch set 4 V -1 07/03/26, 15:43

    Published edit on patch set 3.
  8. core-ci voted on patch set 4 V +1 07/03/26, 15:52 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104310

  9. Garvin Hicking commented on patch set 5 V +1 07/05/26, 08:11

    Published edit on patch set 4.
  10. Garvin Hicking marked it ready for review 07/05/26, 08:11

  11. core-ci voted on patch set 5 V -1 07/05/26, 08:19 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104356

  12. Garvin Hicking commented on patch set 6 V -1 07/05/26, 09:29

    Published edit on patch set 5.
  13. core-ci voted on patch set 6 V +1 07/05/26, 09:36 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104357

  14. Benni Mack voted on patch set 6 CR +2 V +2 07/06/26, 06:57

  15. Benni Mack merged patch set 7 07/06/26, 06:57