Issue Bug Closed

#67005$instance->localeDependencies is not filled properly in FLUIDTEAMPLATE

Andre Michels 05/18/15, 11:07 updated 01/06/23, 13:54

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.

History 4

  1. Riccardo De Contardi changed category 11/01/15, 22:42

  2. Claus Due commented and changed category Complexity easy 11/14/15, 13:30

    I’m moving this one to the “TypoScript” categories for the following reasons:

    • Fluid itself does only what it is told by configuration and the source of the problem is in this (default) configuration.
    • Fluid only delegates translation to the core – it does not do any actual translating or resolving of active language.
    • It could be seen as related to translation, but I expect a solution can be found in TypoScript (default controller/package perhaps).
    • The change needs to be performed in the TypoScript object rendering instructions and mapped to Request properties.

    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.

  3. Benni Mack changed Related to #69125 03/14/20, 17:15

  4. Christian Kuhn commented and changed status New Closed 01/06/23, 13:54

    Hey. 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.