Skip to content

Commit

Permalink
add string of Update the category button
Browse files Browse the repository at this point in the history
  • Loading branch information
pichetp committed Apr 20, 2007
1 parent 4de19d9 commit 1d9bc9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en_utf8/qtype_calculated.php
Expand Up @@ -20,6 +20,7 @@
$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.';
?>
2 changes: 1 addition & 1 deletion question/type/calculated/edit_calculated_form.php
Expand Up @@ -68,7 +68,7 @@ function definition_inner(&$mform) {
$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');
Expand Down

0 comments on commit 1d9bc9a

Please sign in to comment.