Review main Merged

75941[BUGFIX] Build LanguageService in TranslateViewHelper

Andreas Kienast CR +2 V +2 Easy +15 −2 updated 10/02/22, 19:17

Commit message

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.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 1