diff --git a/question/type/calculated/lang/en/qtype_calculated.php b/question/type/calculated/lang/en/qtype_calculated.php index 71a6222411b..985e60ecac2 100644 --- a/question/type/calculated/lang/en/qtype_calculated.php +++ b/question/type/calculated/lang/en/qtype_calculated.php @@ -44,6 +44,7 @@ $string['calculated'] = 'Calculated'; $string['calculated_help'] = 'Calculated questions enable individual numerical questions to be created using wildcards that are substituted with individual values when the quiz is taken.'; $string['addingcalculated_link'] = 'question/type/calculated'; $string['calculatedsummary'] = 'Calculated questions are like numerical questions but with the numbers used selected randomly from a set when the quiz is taken.'; +$string['choosedatasetproperties'] = 'Choose wild cards dataset properties'; $string['correctanswershows'] = 'Correct answer shows'; $string['correctanswershowsformat'] = 'Format'; $string['dataitemdefined']='with $a numerical values already defined is available'; @@ -51,6 +52,7 @@ $string['datasetrole']= ' The wild cards {x..} will be substitu $string['deleteitem'] = 'Delete Item'; $string['deletelastitem'] = 'Delete Last Item'; $string['editingcalculated'] = 'Editing a Calculated question'; +$string['editdatasets'] = 'Edit the wild cards datasets'; $string['existingcategory1'] = 'will use an already existing shared dataset'; $string['existingcategory2'] = 'a file from an already existing set of files that are also used by other questions in this category'; $string['existingcategory3'] = 'a link from an already existing set of links that are also used by other questions in this category'; @@ -91,6 +93,8 @@ $string['notvalidnumber'] = 'Wild card value is not a valid number ' ; $string['oneanswertrueansweroutsidelimits'] = 'At least one correct answer outside the true value limits.
Modify the answers tolerance settings available as Advanced parameters'; $string['param'] = 'Param {$a}'; $string['possiblehdr'] = 'Possible wild cards present only in the question text'; +$string['questiondatasets'] = 'Question datasets'; +$string['questiondatasets_help'] = 'Question datasets of wild cards that will be used in each individual question'; $string['replacewithrandom'] = 'Replace with a random value'; $string['reuseifpossible'] = 'reuse previous value if available'; $string['sharedwildcard']='Shared wild card'; diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index a5f7a2cb2d2..f4fc05b4944 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -505,10 +505,10 @@ class question_calculated_qtype extends default_questiontype { return; break; case 'datasetdefinitions': - echo $OUTPUT->heading_with_help(get_string("choosedatasetproperties", "quiz"), 'questiondatasets', 'quiz'); + echo $OUTPUT->heading_with_help(get_string("choosedatasetproperties", "qtype_calculated"), 'questiondatasets', 'qtype_calculated'); break; case 'datasetitems': - echo $OUTPUT->heading_with_help(get_string("editdatasets", "quiz"), 'questiondatasets', 'quiz'); + echo $OUTPUT->heading_with_help(get_string("editdatasets", "qtype_calculated"), 'questiondatasets', 'qtype_calculated'); break; }