Localization Utility use the full path for locallang files
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
- LOCAL_LANG cache is dependent to current installation path.
To fix this bug, only one line has to be removed:
$languageFilePath = GeneralUtility::getFileAbsFileName($languageFilePath);
The absolute path is not required because, "LocalizationFactory" resolves the path before parsing Locallang file.
#1 Updated by Riccardo De Contardi 5 months ago
Is this issue still present? I tried to look in the core file for the string
GeneralUtility::getFileAbsFileName($languageFilePath) without finding it.
Moreover the file
typo3/sysext/extbase/Classes/Utility/LocalizationUtility.php reads at line 87:
$languageFilePath = static::getLanguageFilePath($extensionName);