[BUGFIX] Properly handle XLF translation file detection 75/37475/3
authorMarkus Klein <klein.t3@reelworx.at>
Wed, 25 Feb 2015 13:26:51 +0000 (14:26 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Mon, 2 Mar 2015 19:45:28 +0000 (20:45 +0100)
commit64cf5ee55fd92a63f2d2280918f4c6ca02ce6178
tree388c8caba1cdefa003debd7c268a4cc009e0e355
parentaef204f2f9da0159204c06175540b7b9ffd44bee
[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/37475
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Utility/GeneralUtility.php