2 namespace TYPO3\CMS\Core\Localization\Parser;
56 if ($this->languageKey !==
'default') {
58 if (!@is_file($this->sourcePath)) {
62 if (!@is_file($this->sourcePath)) {
66 $LOCAL_LANG = array();
82 $charsetConverter =
$GLOBALS[
'LANG']->csConvObj;
84 $charsetConverter =
$GLOBALS[
'TSFE']->csConvObj;
89 $targetCharset = $charsetConverter->parse_charset(
$charset);
91 $targetCharset =
'utf-8';
93 return $targetCharset;
104 $rootXmlNode = simplexml_load_file($this->sourcePath,
'SimpleXMLElement', LIBXML_NOWARNING);
105 if (!isset($rootXmlNode) || $rootXmlNode ===
false) {
106 throw new InvalidXmlFileException(
'The path provided does not point to existing and accessible well-formed XML file.', 1278155988);