Skip to content

Commit

Permalink
MDL-13530 - Improve words used in the gradebook plugin selector dropd…
Browse files Browse the repository at this point in the history
…own menu
  • Loading branch information
tjhunt committed Feb 19, 2008
1 parent d0b8e40 commit 4d526fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions grade/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ function print_grade_plugin_selector($courseid, $active_type, $active_plugin, $r
asort($reportnames);
}
if (!empty($reportnames)) {
$menu['reportgroup']='--'.get_string('reportplugins', 'grades');
$menu['reportgroup']='--'.get_string('view');
$menu = $menu+$reportnames;
}

Expand All @@ -356,7 +356,7 @@ function print_grade_plugin_selector($courseid, $active_type, $active_plugin, $r
asort($importnames);
}
if (!empty($importnames)) {
$menu['importgroup']='--'.get_string('importplugins', 'grades');
$menu['importgroup']='--'.get_string('importfrom', 'grades');
$menu = $menu+$importnames;
}

Expand All @@ -381,7 +381,7 @@ function print_grade_plugin_selector($courseid, $active_type, $active_plugin, $r
asort($exportnames);
}
if (!empty($exportnames)) {
$menu['exportgroup']='--'.get_string('exportplugins', 'grades');
$menu['exportgroup']='--'.get_string('exportto', 'grades');
$menu = $menu+$exportnames;
}

Expand Down Expand Up @@ -446,7 +446,8 @@ function print_grade_plugin_selector($courseid, $active_type, $active_plugin, $r

/// finally print/return the popup form
if ($count > 1) {
return popup_form($CFG->wwwroot.'/grade/', $menu, 'choosepluginreport', $active, 'choose', '', '', $return, 'self', get_string('view'));
return popup_form($CFG->wwwroot.'/grade/', $menu, 'choosepluginreport', '',
get_string('chooseaction', 'grades'), '', '', $return, 'self');
} else {
// only one option - no plugin selector needed
return '';
Expand Down
3 changes: 3 additions & 0 deletions lang/en_utf8/grades.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
$string['categorytotal'] = 'Category total';
$string['changereportdefaults'] = 'Change report defaults';
$string['choosecategory'] = 'Select category';
$string['chooseaction'] = 'Choose an action ...';
$string['compact'] = 'Compact';
$string['configdisablegradehistory'] = 'Disable history tracking of changes in grades related tables. This may speed up the server a little and conserve space in database.';
$string['configaggregationposition'] = 'Defines the position of the aggregation total column in the report related to the grades being aggregated.';
Expand Down Expand Up @@ -161,6 +162,7 @@
$string['exportfeedback'] = 'Include feedback in export';
$string['exportplugins'] = 'Export plugins';
$string['exportselectedoutcomes'] = 'Export selected outcomes';
$string['exportto'] = 'Export to';
$string['extracredit'] = 'Extra Credit';
$string['extracreditwarning'] = 'Note: Setting all items for a category to extra credit will effectively remove them from the grade calculation. Since there will be no point total';
$string['feedback'] = 'Feedback';
Expand Down Expand Up @@ -258,6 +260,7 @@
$string['importcsv'] = 'Import CSV';
$string['importcustom'] = 'Import as custom outcomes (only this course)';
$string['importerror'] = 'An error occured, this script wasn\'t called with the right parameters.';
$string['importfrom'] = 'Import from';
$string['importfailed'] = 'Import failed';
$string['importfeedback'] = 'Import feedback';
$string['importfile'] = 'Import file';
Expand Down

0 comments on commit 4d526fb

Please sign in to comment.