Bug #81834

Switch language in action

Added by Daniel Nemanic about 2 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase + l10n
Target version:
-
Start date:
2017-07-11
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I use TYPO3 8.7.3 and my own extension. So far, I was able to use the

$GLOBALS['TSFE']->config['config']['language']
variable to switch in extbase to another language. This is actually not possible. Is there a new way to switch between languages in the action of a controller? Important for me to create Mails and PDF throw:
\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate

BR

Daniel


Related issues

Duplicated by TYPO3 Core - Feature #82354: Add possibility to get a label in a specific language in LocalizationUtility::translate() Closed 2017-09-07

Associated revisions

Revision 4dbe5bdc (diff)
Added by Markus Hölzle almost 2 years ago

[FEATURE] Add possibility to get a label in a specific language

Add possibility to get a label in a specific language in
LocalizationUtility::translate() and the TranslateViewHelper

Change-Id: I8589e2b155e57eed3124ed48b0d859fe7796ff3b
Resolves: #82354
Related: #81834
Releases: master
Reviewed-on: https://review.typo3.org/53967
Tested-by: TYPO3com <>
Tested-by: Joerg Kummer <>
Reviewed-by: Markus Klein <>
Reviewed-by: Jigal van Hemert <>
Tested-by: Jigal van Hemert <>

History

#1 Updated by Riccardo De Contardi almost 2 years ago

  • Category changed from Extbase to Extbase + l10n

#2 Updated by Anja Leichsenring almost 2 years ago

  • Related to Feature #82354: Add possibility to get a label in a specific language in LocalizationUtility::translate() added

#3 Updated by Anja Leichsenring almost 2 years ago

  • Related to deleted (Feature #82354: Add possibility to get a label in a specific language in LocalizationUtility::translate())

#4 Updated by Anja Leichsenring almost 2 years ago

  • Duplicated by Feature #82354: Add possibility to get a label in a specific language in LocalizationUtility::translate() added

#5 Updated by Tymoteusz Motylewski 11 months ago

  • Status changed from New to Resolved

It was fixed in the meantime with https://review.typo3.org/#/c/53967/

#6 Updated by Benni Mack 11 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF