]> git.mjollnir.org Git - moodle.git/commitdiff
Various language string fixes for grade reports
authormoodler <moodler>
Mon, 23 Jul 2007 08:13:59 +0000 (08:13 +0000)
committermoodler <moodler>
Mon, 23 Jul 2007 08:13:59 +0000 (08:13 +0000)
12 files changed:
grade/export/ods/index.php
grade/export/txt/index.php
grade/export/xls/index.php
grade/export/xml/index.php
grade/lib.php
grade/report/grader/index.php
grade/report/grader/preferences.php
grade/report/grader/tabs.php
grade/report/user/index.php
lang/en_utf8/gradereport_grader.php
lang/en_utf8/gradereport_user.php
lang/en_utf8/grades.php

index 2431c863c82f8e2275472ce1baf173f313922330..f97c15e6d189598b69d615d3c3b194d0fccd3cab 100755 (executable)
@@ -33,7 +33,7 @@ require_capability('moodle/course:downloadallgrades', get_context_instance(CONTE
 $course = get_record('course', 'id', $id);
 $feedback = optional_param('feedback', '', PARAM_ALPHA);
 $strgrades = get_string('grades', 'grades');
-$actionstr = get_string('exportods', 'grades');
+$actionstr = get_string('modulename', 'gradeexport_ods');
 $gradenav = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";
 $gradenav .= " -> <a href=\"$CFG->wwwroot/grade/index.php?id=$course->id\">$strgrades</a>";
 $gradenav .= " -> $actionstr";
@@ -59,4 +59,4 @@ if (($data = data_submitted()) && confirm_sesskey()) {
 
 print_gradeitem_selections($id);
 print_footer();
-?>
\ No newline at end of file
+?>
index fbc3b2e362c1e81bc32c4f80b2c8b0bb2065e60a..b44626cb993aa5a2a6b4234ad100bc8ab53ef23d 100755 (executable)
@@ -33,7 +33,7 @@ require_capability('moodle/course:downloadallgrades', get_context_instance(CONTE
 $feedback = optional_param('feedback', '', PARAM_ALPHA);
 $course = get_record('course', 'id', $id);
 $strgrades = get_string('grades', 'grades');
-$actionstr = get_string('exporttxt', 'grades');
+$actionstr = get_string('modulename', 'gradeexport_txt');
 $gradenav = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";
 $gradenav .= " -> <a href=\"$CFG->wwwroot/grade/index.php?id=$course->id\">$strgrades</a>";
 $gradenav .= " -> $actionstr";
@@ -63,4 +63,4 @@ $mform = new grade_export_txt_form(qualified_me(), array('id'=>$id));
 $mform->display();
 
 print_footer();
-?>
\ No newline at end of file
+?>
index 14fb2023dedce9ffad3a5a586a14f12cba3bc2ef..5dffbe4ca4194cc52cc4db6bc1de844c2e756a67 100755 (executable)
@@ -34,7 +34,7 @@ $course = get_record('course', 'id', $id);
 $feedback = optional_param('feedback', '', PARAM_ALPHA);
 
 $strgrades = get_string('grades', 'grades');
-$actionstr = get_string('exportxls', 'grades');
+$actionstr = get_string('modulename', 'gradeexport_xls');
 $gradenav = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";
 $gradenav .= " -> <a href=\"$CFG->wwwroot/grade/index.php?id=$course->id\">$strgrades</a>";
 $gradenav .= " -> $actionstr";
@@ -61,4 +61,4 @@ if (($data = data_submitted()) && confirm_sesskey()) {
 
 print_gradeitem_selections($id);
 print_footer();
-?>
\ No newline at end of file
+?>
index 0708c166b1a911fa2ab967349f5c3d4c8f318557..f6020c975fc8bc8d3ae0ea900ac2e3efd8cf57f3 100755 (executable)
@@ -34,7 +34,7 @@ $course = get_record('course', 'id', $id);
 $feedback = optional_param('feedback', '', PARAM_ALPHA);
 
 $strgrades = get_string('grades', 'grades');
-$actionstr = get_string('exportxml', 'grades');
+$actionstr = get_string('modulename', 'gradeexport_xml');
 $gradenav = "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>";
 $gradenav .= " -> <a href=\"$CFG->wwwroot/grade/index.php?id=$course->id\">$strgrades</a>";
 $gradenav .= " -> $actionstr";
@@ -61,4 +61,4 @@ if (($data = data_submitted()) && confirm_sesskey()) {
 
 print_gradeitem_selections($id);
 print_footer();
-?>
\ No newline at end of file
+?>
index 3a138d973a0a8d85bb6d0f843146b9c277a85135..f967673d5a9b3547b1b0c63bf6a09408346c5bdb 100644 (file)
@@ -33,7 +33,7 @@ function print_grade_plugin_selector($courseid, $active_type, $active_plugin, $r
             if ($active_type == 'report' and $active_plugin == $plugin ) {
                 $active = $url;
             }
-            $reportnames[$url] = get_string('modulename', 'gradereport_'.$plugin);
+            $reportnames[$url] = get_string('modulename', 'gradereport_'.$plugin, NULL, $CFG->dirroot.'/grade/report/'.$plugin.'lang/');
         }
         asort($reportnames);
     }
@@ -43,7 +43,7 @@ function print_grade_plugin_selector($courseid, $active_type, $active_plugin, $r
     }
 
 /// standard import plugins
-    if ($imports = get_list_of_plugins('grade/import', 'CVS')) {         // Get all installed reports
+    if ($imports = get_list_of_plugins('grade/import', 'CVS')) {         // Get all installed import plugins
         foreach ($imports as $key => $plugin) {                      // Remove ones we can't see
             if (!has_capability('gradeimport/'.$plugin.':view', $context)) {
                 unset($imports[$key]);
@@ -57,7 +57,7 @@ function print_grade_plugin_selector($courseid, $active_type, $active_plugin, $r
             if ($active_type == 'impot' and $active_plugin == $plugin ) {
                 $active = $url;
             }
-            $importnames[$url] = get_string('modulename', 'gradeimport_'.$plugin);
+            $importnames[$url] = get_string('modulename', 'gradeimport_'.$plugin, NULL, $CFG->dirroot.'/grade/import/'.$plugin.'lang/');
         }
         asort($importnames);
     }
@@ -67,7 +67,7 @@ function print_grade_plugin_selector($courseid, $active_type, $active_plugin, $r
     }
 
 /// standard export plugins
-    if ($exports = get_list_of_plugins('grade/export', 'CVS')) {         // Get all installed reports
+    if ($exports = get_list_of_plugins('grade/export', 'CVS')) {         // Get all installed export plugins
         foreach ($exports as $key => $plugin) {                      // Remove ones we can't see
             if (!has_capability('gradeexport/'.$plugin.':view', $context)) {
                 unset($exports[$key]);
@@ -81,7 +81,7 @@ function print_grade_plugin_selector($courseid, $active_type, $active_plugin, $r
             if ($active_type == 'impot' and $active_plugin == $plugin ) {
                 $active = $url;
             }
-            $exportnames[$url] = get_string('modulename', 'gradeexport_'.$plugin);
+            $exportnames[$url] = get_string('modulename', 'gradeexport_'.$plugin, NULL, $CFG->dirroot.'/grade/export/'.$plugin.'lang/');
         }
         asort($exportnames);
     }
@@ -291,4 +291,4 @@ class grade_plugin_return {
         return $url;
     }
 }
-?>
\ No newline at end of file
+?>
index 35d4a452f2acc90fb8222b298db3eb0c272b13b5..bdb387a7ec5b3b11f17835d4af0f1afecef7ab69 100644 (file)
@@ -49,8 +49,6 @@ if (!$context = get_context_instance(CONTEXT_COURSE, $report->gtree->courseid))
     return false;
 }
 
-print_heading('Grader Report');
-
 // Add tabs
 $currenttab = 'graderreport';
 include('tabs.php');
index 84519dba4d1cc40a4e06c71d328cd8df0eaea7ba..dc626481dd838d3256a3346aa214506f81524b9f 100644 (file)
@@ -25,6 +25,7 @@
 set_time_limit(0);
 require_once '../../../config.php';
 require_once $CFG->libdir . '/gradelib.php';
+require_once '../../lib.php';
 
 $courseid      = required_param('id', PARAM_INT);
 
@@ -61,7 +62,7 @@ if ($form = data_submitted()) {
 }
 
 $strgrades = get_string('grades');
-$strgraderreport = get_string('graderreport', 'grades');
+$strgraderreport = get_string('modulename', 'gradereport_grader');
 $strgradepreferences = get_string('gradepreferences', 'grades');
 
 $navlinks = array();
@@ -74,7 +75,10 @@ $navigation = build_navigation($navlinks);
 
 print_header_simple($strgrades.': '.$strgraderreport . ': ' . $strgradepreferences,': '.$strgradepreferences, $navigation,
                     '', '', true, '', navmenu($course));
-print_heading(get_string('preferences'));
+
+/// Print the plugin selector at the top
+print_grade_plugin_selector($course->id, 'report', 'grader');
+
 // Add tabs
 $currenttab = 'preferences';
 include('tabs.php');
index 9ee698299949b74868bbd328bf8ecd07882d6878..2f8a192ca92383c7bd8b1ee51a00176beafd4f3d 100644 (file)
@@ -2,7 +2,7 @@
     $row = $tabs = array();
     $row[] = new tabobject('graderreport',
                            $CFG->wwwroot.'/grade/report.php?id='.$courseid.'&amp;report=grader',
-                           get_string('graderreport', 'grades'));
+                           get_string('modulename', 'gradereport_grader'));
 
     $row[] = new tabobject('preferences',
                            $CFG->wwwroot.'/grade/report/grader/preferences.php?id='.$courseid,
index 4e1e89366349620f441877be357cc26fd16e19c2..24e8844a1a225a7103cd50b4bc5a8135dc0051f8 100644 (file)
@@ -20,7 +20,7 @@ $gradetotal = 0;
 $gradesum = 0;
 
 // print the page
-print_heading(get_string('userreport', 'grades'). " - ".fullname($report->user));
+print_heading(get_string('modulename', 'gradereport_user'). " - ".fullname($report->user));
 
 if ($report->fill_table()) {
     echo $report->print_table(true);
index 5388589ea4994b39e754be626fcb521eb9c2a0f8..42ea331ca8240e855717ea5a04b1ad7f2535e3a2 100644 (file)
@@ -1,6 +1,6 @@
 <?PHP // $Id$ 
 
-$string['modulename'] = 'Grader';
+$string['modulename'] = 'Grader report';
 $string['grader:manage'] = 'Manage the grader report';
 $string['grader:view'] = 'View the grader report';
 
index 6ee4116c1a5d76a5093b0d0c3a4de63daecc856b..6834769ae4aa7e18ddbe897c34ecab54b6384c56 100644 (file)
@@ -1,6 +1,6 @@
 <?PHP // $Id$ 
 
-$string['modulename'] = 'User';
+$string['modulename'] = 'User report';
 $string['user:view'] = 'View your own grade report';
 
 ?>
index 0e77c82de3bff5c005ab78cdd2a9a2d9557d9d7f..ecaf46777b068ae59e435ec053f9bd7d4c5f2746 100644 (file)
@@ -99,10 +99,7 @@ $string['errorreprintheadersnonnumeric'] = 'Received non-numeric value for repri
 $string['exceptions'] = 'Exceptions';
 $string['excluded'] = 'Excluded';
 $string['expand'] = 'Expand Category';
-$string['exportods'] = 'Export ODS';
 $string['exportplugins'] = 'Export plugins';
-$string['exporttxt'] = 'Export TXT';
-$string['exportxml'] = 'Export XML';
 $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';
@@ -147,8 +144,6 @@ $string['plusfactor'] = 'Offset';
 $string['gradepreferences'] = 'Grade Preferences';
 $string['gradepreferenceshelp'] = 'Grade Preferences Help';
 $string['grades'] = 'Grades';
-$string['gradereports'] = 'Grades report';
-$string['graderreport'] = 'Grader report';
 $string['gradetype'] = 'Grade type';
 $string['gradeview'] = 'View Grade';
 $string['gradeweighthelp'] = 'Grade Weight Help';
@@ -294,7 +289,6 @@ $string['usenooutcome'] = 'Use no outcome';
 $string['usenoscale'] = 'Use no scale';
 $string['usepercent'] = 'Use Percent';
 $string['userpreferences'] = 'User preferences';
-$string['userreport'] = 'User grade report';
 $string['useweighted'] = 'Use Weighted';
 $string['viewbygroup'] = 'Group';
 $string['viewgrades'] = 'View Grades';