From 5712bf7b91964e6dbbd2afdead94bb3dd8c0030a Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Fri, 4 Jan 2013 14:24:55 +0100 Subject: Ability to use Mathjax for TeX rendering --- lang/en/qtype_algebra.php | 44 +++++++++++++++++++++++++++++++++++++++- lang/en/qtype_algebra_parser.php | 20 ------------------ 2 files changed, 43 insertions(+), 21 deletions(-) delete mode 100644 lang/en/qtype_algebra_parser.php (limited to 'lang/en') diff --git a/lang/en/qtype_algebra.php b/lang/en/qtype_algebra.php index dd09a97..8612e7d 100644 --- a/lang/en/qtype_algebra.php +++ b/lang/en/qtype_algebra.php @@ -1,5 +1,47 @@ . + +/** + * The language strings for the algebra question type. + * + * @package qtype_algebra + * @author Roger Moore + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +// Parser lang strings. +$string['badclosebracket'] = 'Invalid close bracket found'; +$string['badequivtype'] = 'Invalid type: can only compare parser terms with other parser terms'; +$string['badfuncargs'] = 'Invalid arguments for the function \'{$a}\''; +$string['decimal'] = '.'; +$string['illegalplusminus'] = 'Found a + or - in an invalid location'; +$string['mismatchedbracket'] = 'Mismatched brackets: Open and close bracket pair not of same type \'$a\''; +$string['mismatchedcloseb'] = 'Mismatched brackets: Close bracket without an open bracket found'; +$string['mismatchedopenb'] = 'Mismatched brackets: Open bracket without a close bracket found'; +$string['missingonearg'] = 'Syntax Error: Operator \'{$a}\' missing its argument'; +$string['missingtwoargs'] = 'Syntax Error: Operator \'{$a}\' requires two arguments'; +$string['morethantwoargs'] = 'Trying to compare a term with more than 2 arguments - no code to handle this case!'; +$string['multiply'] = '\\\\times'; +$string['nargswrong'] = 'Incorrect number of arguments for the term \'{$a}\''; +$string['noevaluate'] = 'The evaluate method for term \'{$a}\' has not been implemented'; +$string['notopterm'] = 'Syntax Error: Unable to condense to a single, top level operator'; +$string['undeclaredvar'] = 'Undeclared variable \'{$a}\' found'; +$string['undefinedfunction'] = 'Undefined function \'{$a}\''; +$string['undefinedvariable'] = 'Undefined variable \'{$a}\' found when numerically evaluating an expression'; +$string['unknownterm'] = 'Syntax Error: Unknown term found at \'{$a}\' in the expression'; $string['answermustbegiven'] = 'You must enter an answer if there is a grade or feedback.'; $string['answerno'] = 'Answer {$a}'; diff --git a/lang/en/qtype_algebra_parser.php b/lang/en/qtype_algebra_parser.php deleted file mode 100644 index d4f7241..0000000 --- a/lang/en/qtype_algebra_parser.php +++ /dev/null @@ -1,20 +0,0 @@ -