| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | $fallback = false; |
|---|
| 4 | |
|---|
| 5 | $messages = array( |
|---|
| 6 | |
|---|
| 7 | 'HTMLPurifier' => 'HTML Purifier', |
|---|
| 8 | |
|---|
| 9 | // for unit testing purposes |
|---|
| 10 | 'LanguageFactoryTest: Pizza' => 'Pizza', |
|---|
| 11 | 'LanguageTest: List' => '$1', |
|---|
| 12 | 'LanguageTest: Hash' => '$1.Keys; $1.Values', |
|---|
| 13 | |
|---|
| 14 | 'Item separator' => ', ', |
|---|
| 15 | 'Item separator last' => ' and ', // non-Harvard style |
|---|
| 16 | |
|---|
| 17 | 'ErrorCollector: No errors' => 'No errors detected. However, because error reporting is still incomplete, there may have been errors that the error collector was not notified of; please inspect the output HTML carefully.', |
|---|
| 18 | 'ErrorCollector: At line' => ' at line $line', |
|---|
| 19 | |
|---|
| 20 | 'Lexer: Unclosed comment' => 'Unclosed comment', |
|---|
| 21 | 'Lexer: Unescaped lt' => 'Unescaped less-than sign (<) should be <', |
|---|
| 22 | 'Lexer: Missing gt' => 'Missing greater-than sign (>), previous less-than sign (<) should be escaped', |
|---|
| 23 | 'Lexer: Missing attribute key' => 'Attribute declaration has no key', |
|---|
| 24 | 'Lexer: Missing end quote' => 'Attribute declaration has no end quote', |
|---|
| 25 | |
|---|
| 26 | 'Strategy_RemoveForeignElements: Tag transform' => '<$1> element transformed into $CurrentToken.Serialized', |
|---|
| 27 | 'Strategy_RemoveForeignElements: Missing required attribute' => '$CurrentToken.Compact element missing required attribute $1', |
|---|
| 28 | 'Strategy_RemoveForeignElements: Foreign element to text' => 'Unrecognized $CurrentToken.Serialized tag converted to text', |
|---|
| 29 | 'Strategy_RemoveForeignElements: Foreign element removed' => 'Unrecognized $CurrentToken.Serialized tag removed', |
|---|
| 30 | 'Strategy_RemoveForeignElements: Comment removed' => 'Comment containing "$CurrentToken.Data" removed', |
|---|
| 31 | 'Strategy_RemoveForeignElements: Foreign meta element removed' => 'Unrecognized $CurrentToken.Serialized meta tag and all descendants removed', |
|---|
| 32 | 'Strategy_RemoveForeignElements: Token removed to end' => 'Tags and text starting from $1 element where removed to end', |
|---|
| 33 | |
|---|
| 34 | 'Strategy_MakeWellFormed: Unnecessary end tag removed' => 'Unnecessary $CurrentToken.Serialized tag removed', |
|---|
| 35 | 'Strategy_MakeWellFormed: Unnecessary end tag to text' => 'Unnecessary $CurrentToken.Serialized tag converted to text', |
|---|
| 36 | 'Strategy_MakeWellFormed: Tag auto closed' => '$1.Compact started on line $1.Line auto-closed by $CurrentToken.Compact', |
|---|
| 37 | 'Strategy_MakeWellFormed: Stray end tag removed' => 'Stray $CurrentToken.Serialized tag removed', |
|---|
| 38 | 'Strategy_MakeWellFormed: Stray end tag to text' => 'Stray $CurrentToken.Serialized tag converted to text', |
|---|
| 39 | 'Strategy_MakeWellFormed: Tag closed by element end' => '$1.Compact tag started on line $1.Line closed by end of $CurrentToken.Serialized', |
|---|
| 40 | 'Strategy_MakeWellFormed: Tag closed by document end' => '$1.Compact tag started on line $1.Line closed by end of document', |
|---|
| 41 | |
|---|
| 42 | 'Strategy_FixNesting: Node removed' => '$CurrentToken.Compact node removed', |
|---|
| 43 | 'Strategy_FixNesting: Node excluded' => '$CurrentToken.Compact node removed due to descendant exclusion by ancestor element', |
|---|
| 44 | 'Strategy_FixNesting: Node reorganized' => 'Contents of $CurrentToken.Compact node reorganized to enforce its content model', |
|---|
| 45 | 'Strategy_FixNesting: Node contents removed' => 'Contents of $CurrentToken.Compact node removed', |
|---|
| 46 | |
|---|
| 47 | 'AttrValidator: Attributes transformed' => 'Attributes on $CurrentToken.Compact transformed from $1.Keys to $2.Keys', |
|---|
| 48 | 'AttrValidator: Attribute removed' => '$CurrentAttr.Name attribute on $CurrentToken.Compact removed', |
|---|
| 49 | |
|---|
| 50 | ); |
|---|
| 51 | |
|---|
| 52 | $errorNames = array( |
|---|
| 53 | E_ERROR => 'Error', |
|---|
| 54 | E_WARNING => 'Warning', |
|---|
| 55 | E_NOTICE => 'Notice' |
|---|
| 56 | ); |
|---|
| 57 | |
|---|