Implement nested error collection with start() and end() in ErrorCollector.
[htmlpurifier.git] / library / HTMLPurifier / Language / messages / en.php
blob212acd822b432413db0b6a58e5db0baef4e27bdd
1 <?php
3 $fallback = false;
5 $messages = array(
7 'HTMLPurifier' => 'HTML Purifier',
9 // for unit testing purposes
10 'LanguageFactoryTest: Pizza' => 'Pizza',
11 'LanguageTest: List' => '$1',
12 'LanguageTest: Hash' => '$1.Keys; $1.Values',
14 'Item separator' => ', ',
15 'Item separator last' => ' and ', // non-Harvard style
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 'ErrorCollector: Incidental errors' => 'Incidental errors',
21 'Lexer: Unclosed comment' => 'Unclosed comment',
22 'Lexer: Unescaped lt' => 'Unescaped less-than sign (<) should be &lt;',
23 'Lexer: Missing gt' => 'Missing greater-than sign (>), previous less-than sign (<) should be escaped',
24 'Lexer: Missing attribute key' => 'Attribute declaration has no key',
25 'Lexer: Missing end quote' => 'Attribute declaration has no end quote',
27 'Strategy_RemoveForeignElements: Tag transform' => '<$1> element transformed into $CurrentToken.Serialized',
28 'Strategy_RemoveForeignElements: Missing required attribute' => '$CurrentToken.Compact element missing required attribute $1',
29 'Strategy_RemoveForeignElements: Foreign element to text' => 'Unrecognized $CurrentToken.Serialized tag converted to text',
30 'Strategy_RemoveForeignElements: Foreign element removed' => 'Unrecognized $CurrentToken.Serialized tag removed',
31 'Strategy_RemoveForeignElements: Comment removed' => 'Comment containing "$CurrentToken.Data" removed',
32 'Strategy_RemoveForeignElements: Foreign meta element removed' => 'Unrecognized $CurrentToken.Serialized meta tag and all descendants removed',
33 'Strategy_RemoveForeignElements: Token removed to end' => 'Tags and text starting from $1 element where removed to end',
34 'Strategy_RemoveForeignElements: Trailing hyphen in comment removed' => 'Trailing hyphen(s) in comment removed',
35 'Strategy_RemoveForeignElements: Hyphens in comment collapsed' => 'Double hyphens in comments are not allowed, and were collapsed into single hyphens',
37 'Strategy_MakeWellFormed: Unnecessary end tag removed' => 'Unnecessary $CurrentToken.Serialized tag removed',
38 'Strategy_MakeWellFormed: Unnecessary end tag to text' => 'Unnecessary $CurrentToken.Serialized tag converted to text',
39 'Strategy_MakeWellFormed: Tag auto closed' => '$1.Compact started on line $1.Line auto-closed by $CurrentToken.Compact',
40 'Strategy_MakeWellFormed: Stray end tag removed' => 'Stray $CurrentToken.Serialized tag removed',
41 'Strategy_MakeWellFormed: Stray end tag to text' => 'Stray $CurrentToken.Serialized tag converted to text',
42 'Strategy_MakeWellFormed: Tag closed by element end' => '$1.Compact tag started on line $1.Line closed by end of $CurrentToken.Serialized',
43 'Strategy_MakeWellFormed: Tag closed by document end' => '$1.Compact tag started on line $1.Line closed by end of document',
45 'Strategy_FixNesting: Node removed' => '$CurrentToken.Compact node removed',
46 'Strategy_FixNesting: Node excluded' => '$CurrentToken.Compact node removed due to descendant exclusion by ancestor element',
47 'Strategy_FixNesting: Node reorganized' => 'Contents of $CurrentToken.Compact node reorganized to enforce its content model',
48 'Strategy_FixNesting: Node contents removed' => 'Contents of $CurrentToken.Compact node removed',
50 'AttrValidator: Attributes transformed' => 'Attributes on $CurrentToken.Compact transformed from $1.Keys to $2.Keys',
51 'AttrValidator: Attribute removed' => '$CurrentAttr.Name attribute on $CurrentToken.Compact removed',
55 $errorNames = array(
56 E_ERROR => 'Error',
57 E_WARNING => 'Warning',
58 E_NOTICE => 'Notice'