Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.
   1  <?php
   2  
   3  $fallback = false;
   4  
   5  $messages = array(
   6  
   7      'HTMLPurifier' => 'HTML Purifier',
   8  // for unit testing purposes

   9      'LanguageFactoryTest: Pizza' => 'Pizza',
  10      'LanguageTest: List' => '$1',
  11      'LanguageTest: Hash' => '$1.Keys; $1.Values',
  12      'Item separator' => ', ',
  13      'Item separator last' => ' and ', // non-Harvard style
  14  
  15      '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.',
  16      'ErrorCollector: At line' => ' at line $line',
  17      'ErrorCollector: Incidental errors' => 'Incidental errors',
  18      'Lexer: Unclosed comment' => 'Unclosed comment',
  19      'Lexer: Unescaped lt' => 'Unescaped less-than sign (<) should be &lt;',
  20      'Lexer: Missing gt' => 'Missing greater-than sign (>), previous less-than sign (<) should be escaped',
  21      'Lexer: Missing attribute key' => 'Attribute declaration has no key',
  22      'Lexer: Missing end quote' => 'Attribute declaration has no end quote',
  23      'Lexer: Extracted body' => 'Removed document metadata tags',
  24      'Strategy_RemoveForeignElements: Tag transform' => '<$1> element transformed into $CurrentToken.Serialized',
  25      'Strategy_RemoveForeignElements: Missing required attribute' => '$CurrentToken.Compact element missing required attribute $1',
  26      'Strategy_RemoveForeignElements: Foreign element to text' => 'Unrecognized $CurrentToken.Serialized tag converted to text',
  27      'Strategy_RemoveForeignElements: Foreign element removed' => 'Unrecognized $CurrentToken.Serialized tag removed',
  28      'Strategy_RemoveForeignElements: Comment removed' => 'Comment containing "$CurrentToken.Data" removed',
  29      'Strategy_RemoveForeignElements: Foreign meta element removed' => 'Unrecognized $CurrentToken.Serialized meta tag and all descendants removed',
  30      'Strategy_RemoveForeignElements: Token removed to end' => 'Tags and text starting from $1 element where removed to end',
  31      'Strategy_RemoveForeignElements: Trailing hyphen in comment removed' => 'Trailing hyphen(s) in comment removed',
  32      'Strategy_RemoveForeignElements: Hyphens in comment collapsed' => 'Double hyphens in comments are not allowed, and were collapsed into single hyphens',
  33      'Strategy_MakeWellFormed: Unnecessary end tag removed' => 'Unnecessary $CurrentToken.Serialized tag removed',
  34      'Strategy_MakeWellFormed: Unnecessary end tag to text' => 'Unnecessary $CurrentToken.Serialized tag converted to text',
  35      'Strategy_MakeWellFormed: Tag auto closed' => '$1.Compact started on line $1.Line auto-closed by $CurrentToken.Compact',
  36      'Strategy_MakeWellFormed: Tag carryover' => '$1.Compact started on line $1.Line auto-continued into $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      'Strategy_FixNesting: Node removed' => '$CurrentToken.Compact node removed',
  42      'Strategy_FixNesting: Node excluded' => '$CurrentToken.Compact node removed due to descendant exclusion by ancestor element',
  43      'Strategy_FixNesting: Node reorganized' => 'Contents of $CurrentToken.Compact node reorganized to enforce its content model',
  44      'Strategy_FixNesting: Node contents removed' => 'Contents of $CurrentToken.Compact node removed',
  45      'AttrValidator: Attributes transformed' => 'Attributes on $CurrentToken.Compact transformed from $1.Keys to $2.Keys',
  46      'AttrValidator: Attribute removed' => '$CurrentAttr.Name attribute on $CurrentToken.Compact removed',
  47  );
  48  
  49  $errorNames = array(
  50      E_ERROR => 'Error',
  51      E_WARNING => 'Warning',
  52      E_NOTICE => 'Notice'
  53  );
  54  
  55  // vim: et sw=4 sts=4