Skip to content
Commit 875ffaf8 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Georg Ringer
Browse files

[BUGFIX] Build LanguageService in TranslateViewHelper

Since #98377, the request passed to Fluid's rendering context is no
`ExtbaseRequestInterface` anymore by default, which has an impact on the
`f:translate` view helper. The view helper checks whether the request is
a ExtbaseRequestInterface and falls back to Extbase's internal language
setup.

This patch extends the view helper's `getLanguageService()` method to
check whether the `LanguageService` is already built. If not, a
`LanguageService` is built depending on the application context.

Resolves: #98501
Related: #98377
Releases: main
Change-Id: I07a831c2cb81decff207717ce2db1104581be21c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75941


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 0cd30668
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment