[BUGFIX] Properly handle XLF translation file detection 67/37167/6
authorMarkus Klein <klein.t3@reelworx.at>
Wed, 25 Feb 2015 13:26:51 +0000 (14:26 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 2 Mar 2015 18:23:10 +0000 (19:23 +0100)
commit7fdfdff85cfab2b5174a1117530bcc3ae7be7301
tree53fd6f39dc3d63411adecd89b22cc0a3c560c968
parent3ab6f2a08283041d52a05db3e26817c66024da88
[BUGFIX] Properly handle XLF translation file detection

The GeneralUtility::llXmlAutoFileName() method will now also correctly
handle paths to files that are not placed within a known directory
(ext, sysext, etc.) if the call is made with $sameFile = TRUE.
This allows placing language files in arbitrary storage.

This change finally re-enables the usage of locallang files in TypoScript
or f:translate-ViewHelpers which use the XLIFF format and are not placed
within an extension.
This has always been working with files in the XML format.

Resolves: #65273
Releases: master, 6.2
Change-Id: Ibb647cea32a9fc04e9dfdf707a5e8690ad399d5c
Reviewed-on: http://review.typo3.org/37167
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/core/Classes/Utility/GeneralUtility.php