Issue Bug Closed

#87022Localization Utility use the full path for locallang files

Matthias Toscanelli 11/28/18, 09:26 updated 05/26/19, 10:19

Description

In TYPO3 v9, the class “LocalizationUtility” has been totally rewritten and use now the full path to store cache in LOCAL_LANG.

This bug has at least 2 impact:
  • Locallang files can’t be overridden with
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']
  • LOCAL_LANG cache is dependent to current installation path.

To fix this bug, only one line has to be removed:
(TYPO3\CMS\Extbase\Utility\LocalizationUtility:89)

$languageFilePath = GeneralUtility::getFileAbsFileName($languageFilePath);

The absolute path is not required because, “LocalizationFactory” resolves the path before parsing Locallang file.
(TYPO3\CMS\Core\Localization\LocalizationFactory:122)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.