[BUGFIX] Allow "en" as language key
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Localization / Parser / AbstractXmlParser.php
index c25f153..d6a2f6d 100644 (file)
@@ -29,8 +29,6 @@ namespace TYPO3\CMS\Core\Localization\Parser;
 /**
  * Abstract class for XML based parser.
  *
- * @package TYPO3
- * @subpackage t3lib
  * @author Dominique Feyer <dfeyer@reelpeek.net>
  */
 abstract class AbstractXmlParser implements \TYPO3\CMS\Core\Localization\Parser\LocalizationParserInterface {
@@ -63,7 +61,7 @@ abstract class AbstractXmlParser implements \TYPO3\CMS\Core\Localization\Parser\
                $this->sourcePath = $sourcePath;
                $this->languageKey = $languageKey;
                $this->charset = $this->getCharset($languageKey, $charset);
-               if ($this->languageKey !== 'default' && $this->languageKey !== 'en') {
+               if ($this->languageKey !== 'default') {
                        $this->sourcePath = \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName(\TYPO3\CMS\Core\Utility\GeneralUtility::llXmlAutoFileName($this->sourcePath, $this->languageKey));
                        if (!@is_file($this->sourcePath)) {
                                // Global localization is not available, try split localization file