From efeedf0475d66d7b93a80e111585d291939a1cb0 Mon Sep 17 00:00:00 2001
From: Pierre Pichet <pichet.pierre@uqam.ca>
Date: Wed, 26 May 2010 00:01:21 +0000
Subject: [PATCH] MDL-21695 moving strings related to Choose dataset properties
 and Edit the datasets from quiz.php to qtype_calculated.php and adding very
 elementary.. help strings

---
 question/type/calculated/lang/en/qtype_calculated.php | 4 ++++
 question/type/calculated/questiontype.php             | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

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 <strong>{x..}</strong> 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.<br />Modify the answers tolerance settings available as Advanced parameters';   
 $string['param'] = 'Param {<strong>$a</strong>}';
 $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;
         }