Skip to content
Snippets Groups Projects
Commit 2c108778 authored by Benni Mack's avatar Benni Mack Committed by Christian Kuhn
Browse files

[BUGFIX] Allow a languageKey in non-Extbase f:translate VH

Even though the <f:translate> ViewHelper has a "languageKey"
argument, the parameter was only evaluated for Extbase
requests. However, it should also be possible for non-Extbase
Fluid parts - such as Fluid emails.

The patch adds the "languageKey" handling and refactors the
tests to rely on a fixture extension. Tests are added for
"languageKey" scenarios including fallback chains.

The new tests reveal a bug in extbase LocalizationUtility with
fallback chains along the way, keeps according tests as skipped,
and adds `@todo` for further investigation.

Resolves: #101710
Related: #98377
Releases: main, 12.4
Change-Id: I5251a69c385b50d844d8e24b363109e03596cc6d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80614


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 29d54b8a
Branches
Tags
Showing
with 254 additions and 28 deletions
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