#67005$instance->localeDependencies is not filled properly in FLUIDTEAMPLATE
Description
If you use f:translate in an FLUIDTEMPLATE outside an extension with no extension and/or plugin set it will always return the default translation.
The bug has to be somewhere in Locales.php:170 where the localeDependencies array is filled. It will only be filled with 5 char language codes but most of them are two char codes…
*HOTFIX:*
Dont use the full path to an extension language file like:
LLL:EXT:dbay_loginbox/Resources/Private/Language/locallang.xml:Login.usernameLabel
Set the extension in the typoscript for the FLUIDTEMPLATE:
10 = FLUIDTEMPLATE
10.extbase.pluginName = OverlayLoginbox
10.extbase.controllerExtensionName = DbayLoginbox
and then the following translation key will be translated correctly:
Login.usernameLabel
But now we only can use one extension language files in our FLUIDTEMPLATE
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 4
-
Riccardo De Contardi changed category 11/01/15, 22:42
-
Claus Due commented and changed category Complexity easy 11/14/15, 13:30
-
Benni Mack changed Related to #69125 03/14/20, 17:15
-
Christian Kuhn commented and changed status
NewClosed 01/06/23, 13:54Hey. I hope it’s ok to close here: The issue is quite old and got an answer from Claus without further reaction. In case this is still an issue, please feel free to open a fresh issue with more information.
I’m moving this one to the “TypoScript” categories for the following reasons:
NB: supports 100% same API in standalone Fluid and TYPO3 Fluid so don’t worry about that part ;)
Complexity set to “easy” but may be a nobrainer.