From 1d9bc9a60db8e1e03a7d7e1bcaf00f2d7a7624a3 Mon Sep 17 00:00:00 2001 From: pichetp Date: Fri, 20 Apr 2007 02:43:28 +0000 Subject: [PATCH] add string of Update the category button --- lang/en_utf8/qtype_calculated.php | 1 + question/type/calculated/edit_calculated_form.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/en_utf8/qtype_calculated.php b/lang/en_utf8/qtype_calculated.php index 230c59554b..a89294cc9c 100644 --- a/lang/en_utf8/qtype_calculated.php +++ b/lang/en_utf8/qtype_calculated.php @@ -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.'; ?> \ No newline at end of file diff --git a/question/type/calculated/edit_calculated_form.php b/question/type/calculated/edit_calculated_form.php index 87c14e7565..a38f13b27e 100644 --- a/question/type/calculated/edit_calculated_form.php +++ b/question/type/calculated/edit_calculated_form.php @@ -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'); -- 2.39.5