Project

General

Profile

Actions

Bug #67005

closed

$instance->localeDependencies is not filled properly in FLUIDTEAMPLATE

Added by Andre Michels about 9 years ago. Updated over 1 year 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

Also available in: Atom PDF