[BUGFIX] Fix Language in typo3 9.5
This commit is contained in:
parent
cd116df569
commit
9acf239483
@ -41,7 +41,11 @@ class TranslationController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionCont
|
|||||||
$languageFactory = GeneralUtility::makeInstance(
|
$languageFactory = GeneralUtility::makeInstance(
|
||||||
LocalizationFactory::class
|
LocalizationFactory::class
|
||||||
);
|
);
|
||||||
|
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
||||||
$language = $this->request->getAttribute('language');
|
$language = $this->request->getAttribute('language');
|
||||||
|
} else {
|
||||||
|
$language = $GLOBALS['TYPO3_REQUEST']->getAttribute('language');
|
||||||
|
}
|
||||||
$locale = $language->getLocale();
|
$locale = $language->getLocale();
|
||||||
//\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump(
|
//\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump(
|
||||||
// $locale, '$locale', 3, true, false
|
// $locale, '$locale', 3, true, false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user