From 52eac7506ce5b85a728ae570144461fb6d67310a Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Wed, 25 Aug 2010 09:00:56 +0000 Subject: [PATCH] rating MDL-23908 reformated the rating role hints --- course/moodleform_mod.php | 2 +- lang/en/rating.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/course/moodleform_mod.php b/course/moodleform_mod.php index ad0dcaa368317..383631290580c 100644 --- a/course/moodleform_mod.php +++ b/course/moodleform_mod.php @@ -366,7 +366,7 @@ function standard_coursemodule_elements(){ } } - $mform->addElement('static', 'rolewarning', '', get_string('canrate','rating', implode(', ', $rolesthatcanrate))); + $mform->addElement('static', 'rolewarning', get_string('rolewarning','rating'), implode(', ', $rolesthatcanrate)); $mform->addHelpButton('rolewarning', 'rolewarning', 'rating'); $mform->addElement('select', 'assessed', get_string('aggregatetype', 'rating') , $rm->get_aggregate_types()); diff --git a/lang/en/rating.php b/lang/en/rating.php index a35f146ebc150..0c3d720efa489 100644 --- a/lang/en/rating.php +++ b/lang/en/rating.php @@ -36,7 +36,6 @@ If "No ratings" is selected, then the forum activity will not appear in the gradebook.'; $string['allowratings'] = 'Allow items to be rated?'; -$string['canrate'] = 'Roles with permission to rate: {$a}'; $string['norate'] = 'Rating of items not allowed!'; $string['noviewanyrate'] = 'You can only look at results for posts that you made'; $string['noviewrate'] = 'You do not have the capability to view post ratings'; @@ -45,5 +44,5 @@ $string['rating'] = 'Rating'; $string['ratingtime'] = 'Restrict ratings to items with dates in this range:'; $string['ratings'] = 'Ratings'; -$string['rolewarning'] = 'Ratings'; +$string['rolewarning'] = 'Roles with permission to rate'; $string['rolewarning_help'] = 'Aggregated ratings appear in the gradebook. Click on Permissions under module administration to change who can submit ratings.';