Project

General

Profile

Actions

Bug #67005

closed

$instance->localeDependencies is not filled properly in FLUIDTEAMPLATE

Added by Andre Michels over 9 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2015-05-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #69125: language_alt only works for pibase and extbase pluginsClosed2015-08-17

Actions
Actions #1

Updated by Riccardo De Contardi about 9 years ago

  • Category set to Fluid
Actions #2

Updated by Claus Due about 9 years ago

  • Category changed from Fluid to TypoScript
  • Complexity set to easy

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.

Actions #3

Updated by Benni Mack over 4 years ago

  • Related to Bug #69125: language_alt only works for pibase and extbase plugins added
Actions #4

Updated by Christian Kuhn almost 2 years ago

  • Status changed from New to Closed

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.

Actions

Also available in: Atom PDF