[TYPO3-core] RFC #9206 Feature: Details to error message 'is no TYPO3 language file'

Francois Suter fsuter at cobweb.ch
Sun Sep 28 17:43:07 CEST 2008


Hi,

>> If you have edited a locallang.xml file, then you do not get any 
>> details about the reason.
> 
> Uhm, what?

What Johannes proposes is to concatenate the return value of 
t3lib_div::xml2array() at the end of the current die() message. When an 
error occurs reading the XML, t3lib_div::xml2array() returns the following:

return 'Line '.xml_get_current_line_number($parser).': 
'.xml_error_string(xml_get_error_code($parser));

So this little modification indeed returns more information than the 
current situation.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-team-core mailing list