[TASK] Allow to override labels in LanguageService
The functionality to handle TypoScript overrides for Labels is now moved from Extbase LocalizationUtility to LanguageService. All tests now use proper XLF files and also real TypoScript values, in order to make the tests easier to understand. Instead of magic $LOCALLANG and $LOCALLANG_UNSET properties, LocalizationUtility now keeps the actual LanguageService objects in its storage. The LanguageService->overrideLabels() method should be used with care, as other instances of the object might not have the overrides stored. Resolves: #99559 Releases: main Change-Id: I3e83695baebec545b5e6c5d8504df95950a543cc Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77399 Tested-by:core-ci <typo3@b13.com> Tested-by:
Nikita Hovratov <nikita.h@live.de> Reviewed-by:
Nikita Hovratov <nikita.h@live.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/core/Classes/Localization/LanguageService.php 44 additions, 4 deletionstypo3/sysext/core/Classes/Localization/LanguageService.php
- typo3/sysext/extbase/Classes/Utility/LocalizationUtility.php 52 additions, 97 deletionstypo3/sysext/extbase/Classes/Utility/LocalizationUtility.php
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/label_test/Resources/Private/Language/da.locallang.xlf 24 additions, 0 deletions...ns/label_test/Resources/Private/Language/da.locallang.xlf
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/label_test/Resources/Private/Language/da_alt.locallang.xlf 20 additions, 0 deletions...abel_test/Resources/Private/Language/da_alt.locallang.xlf
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/label_test/Resources/Private/Language/locallang.xlf 29 additions, 0 deletions...sions/label_test/Resources/Private/Language/locallang.xlf
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/label_test/ext_emconf.php 21 additions, 0 deletions.../Functional/Fixtures/Extensions/label_test/ext_emconf.php
- typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php 60 additions, 331 deletions...base/Tests/Functional/Utility/LocalizationUtilityTest.php
This diff is collapsed.
Please register or sign in to comment