rating MDL-23908 altered the way the role hints for ratings work

This commit is contained in:
Andrew Davis 2010-08-25 01:41:15 +00:00
parent d57a462103
commit bbf277335e
2 changed files with 5 additions and 2 deletions

View File

@ -366,7 +366,8 @@ abstract class moodleform_mod extends moodleform {
}
}
$mform->addElement('static', 'rolewarning', '', get_string('rolewarning','rating', implode(', ', $rolesthatcanrate)));
$mform->addElement('static', 'rolewarning', '', get_string('canrate','rating', implode(', ', $rolesthatcanrate)));
$mform->addHelpButton('rolewarning', 'rolewarning', 'rating');
$mform->addElement('select', 'assessed', get_string('aggregatetype', 'rating') , $rm->get_aggregate_types());
$mform->setDefault('assessed', 0);

View File

@ -25,6 +25,7 @@
$string['aggregatetype'] = 'Aggregate type';
$string['allowratings'] = 'Allow items to be rated?';
$string['canrate'] = 'Can submit ratings: {$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';
@ -33,4 +34,5 @@ $string['ratepermissiondenied'] = 'You do not have permission to rate this item'
$string['rating'] = 'Rating';
$string['ratings'] = 'Ratings';
$string['ratingsuse'] = 'Use ratings';
$string['rolewarning'] = 'Ratings automatically enter the Gradebook. Activity permissions determine which users can submit ratings.<br />Can submit ratings: {$a}';
$string['rolewarning'] = '';
$string['rolewarning_help'] = 'Aggregated ratings appear in the gradebook. Click on Permissions under module administration to change who can submit ratings.';