]>
Commit | Line | Data |
---|---|---|
f45a286b AD |
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 | 'ErrorCollector: Incidental errors' => 'Incidental errors', | |
20 | ||
21 | 'Lexer: Unclosed comment' => 'Unclosed comment', | |
22 | 'Lexer: Unescaped lt' => 'Unescaped less-than sign (<) should be <', | |
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', | |
f4f0f80d | 26 | 'Lexer: Extracted body' => 'Removed document metadata tags', |
f45a286b AD |
27 | |
28 | 'Strategy_RemoveForeignElements: Tag transform' => '<$1> element transformed into $CurrentToken.Serialized', | |
29 | 'Strategy_RemoveForeignElements: Missing required attribute' => '$CurrentToken.Compact element missing required attribute $1', | |
30 | 'Strategy_RemoveForeignElements: Foreign element to text' => 'Unrecognized $CurrentToken.Serialized tag converted to text', | |
31 | 'Strategy_RemoveForeignElements: Foreign element removed' => 'Unrecognized $CurrentToken.Serialized tag removed', | |
32 | 'Strategy_RemoveForeignElements: Comment removed' => 'Comment containing "$CurrentToken.Data" removed', | |
33 | 'Strategy_RemoveForeignElements: Foreign meta element removed' => 'Unrecognized $CurrentToken.Serialized meta tag and all descendants removed', | |
34 | 'Strategy_RemoveForeignElements: Token removed to end' => 'Tags and text starting from $1 element where removed to end', | |
35 | 'Strategy_RemoveForeignElements: Trailing hyphen in comment removed' => 'Trailing hyphen(s) in comment removed', | |
36 | 'Strategy_RemoveForeignElements: Hyphens in comment collapsed' => 'Double hyphens in comments are not allowed, and were collapsed into single hyphens', | |
37 | ||
38 | 'Strategy_MakeWellFormed: Unnecessary end tag removed' => 'Unnecessary $CurrentToken.Serialized tag removed', | |
39 | 'Strategy_MakeWellFormed: Unnecessary end tag to text' => 'Unnecessary $CurrentToken.Serialized tag converted to text', | |
40 | 'Strategy_MakeWellFormed: Tag auto closed' => '$1.Compact started on line $1.Line auto-closed by $CurrentToken.Compact', | |
41 | 'Strategy_MakeWellFormed: Tag carryover' => '$1.Compact started on line $1.Line auto-continued into $CurrentToken.Compact', | |
42 | 'Strategy_MakeWellFormed: Stray end tag removed' => 'Stray $CurrentToken.Serialized tag removed', | |
43 | 'Strategy_MakeWellFormed: Stray end tag to text' => 'Stray $CurrentToken.Serialized tag converted to text', | |
44 | 'Strategy_MakeWellFormed: Tag closed by element end' => '$1.Compact tag started on line $1.Line closed by end of $CurrentToken.Serialized', | |
45 | 'Strategy_MakeWellFormed: Tag closed by document end' => '$1.Compact tag started on line $1.Line closed by end of document', | |
46 | ||
47 | 'Strategy_FixNesting: Node removed' => '$CurrentToken.Compact node removed', | |
48 | 'Strategy_FixNesting: Node excluded' => '$CurrentToken.Compact node removed due to descendant exclusion by ancestor element', | |
49 | 'Strategy_FixNesting: Node reorganized' => 'Contents of $CurrentToken.Compact node reorganized to enforce its content model', | |
50 | 'Strategy_FixNesting: Node contents removed' => 'Contents of $CurrentToken.Compact node removed', | |
51 | ||
52 | 'AttrValidator: Attributes transformed' => 'Attributes on $CurrentToken.Compact transformed from $1.Keys to $2.Keys', | |
53 | 'AttrValidator: Attribute removed' => '$CurrentAttr.Name attribute on $CurrentToken.Compact removed', | |
54 | ||
55 | ); | |
56 | ||
57 | $errorNames = array( | |
58 | E_ERROR => 'Error', | |
59 | E_WARNING => 'Warning', | |
60 | E_NOTICE => 'Notice' | |
61 | ); | |
62 | ||
63 | // vim: et sw=4 sts=4 |