Issue Bug Closed

#70717Translations for 6.2 are loaded on Windows because incorrectly DIRECTORY_SEPARATOR is used in a check

Jigal van Hemert 10/14/15, 18:55 updated 10/21/17, 17:35

Description

In \TYPO3\CMS\Lang\Service\TerService::fetchTranslation() a check is done to see if translations for a system extension is downloaded. This checks if /sysext/ is part of the path to the extension.
The actual check uses the constant DIRECTORY_SEPARATOR around ‘sysext’, which is a backslash on Windows and a forward slash on most other systems.
The extension path however always contains forward slashes.

The check thus fails on Windows and translations for 6.2 are downloaded. This is problematic for the extra labels and for the language files which have been moved to other locations in 7.x

Reviews 1