/** * calls the parent function and convert all values from utf-8 to the original charset * * @return void */ public function readFile() { try { parent::readFile(); } catch (LFException $e) { throw $e; } // convert all language values from utf-8 to the original charset if ($GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset'] != 'utf-8') { $this->localLang = typo3Lib::utf8($this->localLang, false, array('default')); } }
/** * extended init * * @param string name of the file (can be a path, if you need this (no check)) * @param string path to the file * @param string relative typo3 path to an language file (i.e. EXT:lfeditor/mod1/locallang.xml) * @return void */ public function init($file, $path, $typo3RelFile) { $this->setVar(array('fileType' => 'php')); parent::init($file, $path, $typo3RelFile); }