Review main Abandoned

90389[FEATURE] Introduce translation domain shortcuts for XLF files

Benni Mack CR 0 V -1 Expert +671 −386 updated 01/23/26, 10:00

Commit message

This feature allows XLF files to define short domain identifiers using
the x-typo3-domain attribute, enabling developers to use memorable
shortcuts like "LLL:core.tabs:general" instead of full file paths
like "LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general".

The TranslationDomainRegistry class scans XLF files for domain
definitions, caches mappings in the l10n cache, and integrates with
the existing localization infrastructure. Domain resolution occurs
in LocalizationFactory before file parsing, ensuring low-level
performance and full backward compatibility.

Both syntaxes work interchangeably, allowing gradual adoption while
maintaining all existing translation references.

TODO:
- Register default locallang.xlf automatically
- Deal with overriding label files

Review

  • Code review CR 0
  • Verified V -1
    • core-ci -1 CI

Issues 1

Files 71

Show 51 more files

Review log 813

  1. Benni Mack uploaded patch set 1 08/14/25, 09:18

  2. core-ci voted on patch set 1 V -1 08/14/25, 09:26 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/83365

  3. Benni Mack updated the commit message in patch set 2 V -1 08/14/25, 19:21

  4. core-ci voted on patch set 2 V -1 08/14/25, 19:29 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/83405

  5. Benni Mack uploaded patch set 3 V -1 09/23/25, 06:30

  6. core-ci voted on patch set 3 V -1 09/23/25, 06:37 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/85365

  7. Benni Mack uploaded patch set 4 V -1 10/13/25, 15:54

  8. core-ci voted on patch set 4 V -1 10/13/25, 16:09 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/86566

  9. Chris Müller commented on patch set 4 10/13/25, 16:12

    Feature-93334-TranslationDomainShortcuts.rst:38 Unresolved

    ```suggestion :caption: EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf :emphasize-lines: 6 ``` Highlight the line with the new attribute for easier view.
  10. Benni Mack rebased onto patch set 5 V -1 10/14/25, 10:31

  11. core-ci voted on patch set 5 V -1 10/14/25, 10:39 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/86613

  12. Benni Mack marked it work in progress 10/15/25, 12:02

  13. Benni Mack abandoned the change 01/23/26, 10:00

    the job is done here!