add string of Update the category button

This commit is contained in:
pichetp 2007-04-20 02:43:28 +00:00
parent 4de19d9296
commit 1d9bc9a60d
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ $string['nodataset'] = 'nothing - it is not a wild card';
$string['nosharedwildcard'] = 'No shared wild card in this category';
$string['possiblehdr']='Possible wild cards present only in the question text';
$string['tolerance'] = 'Tolerance ±';
$string['updatecategory'] = 'Update the category';
$string['usedinquestion']='Used in Question';
$string['youmustenteramultiplierhere'] = 'You must enter a multiplier here.';
?>

View File

@ -68,7 +68,7 @@ class question_edit_calculated_form extends question_edit_form {
$html2 = $this->qtypeobj->print_dataset_definitions_category($this->question);
$mform->insertElementBefore($mform->createElement('static','listcategory',$label,$html2),'name');
$addfieldsname='updatecategory';
$addstring='Update the category';
$addstring=get_string("updatecategory", "qtype_calculated");
$mform->registerNoSubmitButton($addfieldsname);
$mform->insertElementBefore( $mform->createElement('submit', $addfieldsname, $addstring),'listcategory');