Bug #88517

Localization in Middleware

Added by Roman B├╝chler 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-06-07
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

A Middleware has been configured to be processed after 'typo3/cms-frontend/prepare-tsfe-rendering'.
When fetching a translation in the process method with

$GLOBALS['LANG']->sL('LLL:EXT:myext/Resources/Private/Language/locallang.xlf:item');

the English version is returned even though the default language is German. When using a TYPO3\CMS\Fluid\View\StandaloneView the labels from the template get translated correctly.

History

#1 Updated by Bastian Bringenberg 2 months ago

  • Project changed from forge.typo3.org to TYPO3 Core
  • Category deleted (Development)
  • TYPO3 Version set to 9

- Moved to correct Project
- Guessed Version 9

Also available in: Atom PDF