Project

General

Profile

Actions

Bug #102315

closed

FLUIDTEMPLATE: extbase.controllerExtensionName does not allow to skip f:translate|extensionName any more

Added by Jonas Eberle 7 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2023-11-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

As mentioned in the docs, configuring extbase.controllerExtensionName should allow to skip the extensionName argument of f:translate():

page = PAGE
page.1 = FLUIDTEMPLATE
page.1 {
  extbase.controllerExtensionName = felogin
  template = TEXT
  template.value (
    <dl>
      <dt>f:translate key="username":</dt>
      <dd><f:translate key="username" /></dd>
    </dl>
  )
}

But in v12.4.8-dev, this is thrown:

#1639828178 RuntimeException

ViewHelper f:translate in non-extbase context needs attribute "extensionName" to resolve key="username" without path. Either set attribute "extensionName" together with the short key "yourKey" to result in a lookup "LLL:EXT:your_extension/Resources/Private/Language/locallang.xlf:yourKey", or (better) use a full LLL reference like key="LLL:EXT:your_extension/Resources/Private/Language/yourFile.xlf:yourKey". Alternatively, you can also define a default value.

In 11.5.33-dev this works.

Ref: FLUIDTEMPLATE docs https://docs.typo3.org/m/typo3/reference-typoscript/12.4/en-us/ContentObjects/Fluidtemplate/Index.html#extbase-controllerextensionname

Actions

Also available in: Atom PDF