From: Tim Hunt Date: Thu, 19 Nov 2009 17:46:15 +0000 (+0000) Subject: question bank - MDL-20545 need a separate language string for edit question category... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=85edde5c9041d1eb50579e516a26ebc39f4c12a8;p=moodle.git question bank - MDL-20545 need a separate language string for edit question category, as opposed to edit course category. --- diff --git a/lang/en_utf8/question.php b/lang/en_utf8/question.php index ecfb187f69..a7de954234 100644 --- a/lang/en_utf8/question.php +++ b/lang/en_utf8/question.php @@ -61,6 +61,7 @@ $string['disterror'] = 'The distribution $a caused problems'; $string['donothing']= 'Don\'t copy or move files or change links.'; $string['editingcategory'] = 'Editing a category'; $string['editingquestion'] = 'Editing a question'; +$string['editthiscategory'] = 'Edit this category'; $string['enabled'] = 'Enabled'; $string['erroraccessingcontext'] = 'Cannot access context'; $string['errordeletingquestionsfromcategory'] = 'Error deleting questions from category $a.'; diff --git a/question/category_class.php b/question/category_class.php index fa76965ca8..e489c4bcf9 100644 --- a/question/category_class.php +++ b/question/category_class.php @@ -64,7 +64,7 @@ class question_category_list_item extends list_item { public function set_icon_html($first, $last, &$lastitem){ global $CFG; $category = $this->item; - $this->icons['edit']= $this->image_icon(get_string('editthiscategory'), + $this->icons['edit']= $this->image_icon(get_string('editthiscategory', 'question'), "{$CFG->wwwroot}/question/category.php?".$this->parentlist->pageurl->get_query_string(array('edit'=>$category->id)), 'edit'); parent::set_icon_html($first, $last, $lastitem); $toplevel = ($this->parentlist->parentitem === null);//this is a top level item @@ -158,7 +158,7 @@ class question_category_object { $this->str->delete = get_string('delete'); $this->str->moveup = get_string('moveup'); $this->str->movedown = get_string('movedown'); - $this->str->edit = get_string('editthiscategory'); + $this->str->edit = get_string('editthiscategory', 'question'); $this->str->hide = get_string('hide'); $this->str->publish = get_string('publish', 'quiz'); $this->str->order = get_string('order');