]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9628 Added a bit of informational verbose to the hiddenuntil and locktime icons...
authornicolasconnault <nicolasconnault>
Thu, 9 Aug 2007 16:57:26 +0000 (16:57 +0000)
committernicolasconnault <nicolasconnault>
Thu, 9 Aug 2007 16:57:26 +0000 (16:57 +0000)
grade/lib.php
lang/en_utf8/grades.php

index a1983df503e01848a757b65aec744f06a7dccad0..d56629831b8df185908bd49ffe32838f6629d692 100644 (file)
@@ -832,7 +832,7 @@ class grade_tree {
 
             if ($element['type'] != 'category' and $element['object']->get_hidden() > 1) { // Change the icon and add a tooltip showing the date
                 $icon = 'hiddenuntil';
-                $tooltip = userdate($element['object']->get_hidden());
+                $tooltip = get_string('hiddenuntildate', 'grades', userdate($element['object']->get_hidden()));
             }
 
             $url     = $CFG->wwwroot.'/grade/edit/tree/action.php?id='.$this->courseid.'&amp;action=show&amp;sesskey='.sesskey()
@@ -871,7 +871,7 @@ class grade_tree {
 
             if ($element['type'] != 'category' and $element['object']->get_locktime() > 1) { // Change the icon and add a tooltip showing the date
                 $icon = 'locktime';
-                $tooltip = userdate($element['object']->get_locktime());
+                $tooltip = get_string('locktimedate', 'grades', userdate($element['object']->get_locktime()));
             }
 
             if (!has_capability('moodle/grade:manage', $this->context) and !has_capability('moodle/grade:unlock', $this->context)) {
index 917c4405cd6bfaa8088624ce038043c2b0ac9c28..f2e782750120ef0c2facbf0d9ad93896dbccafe7 100644 (file)
@@ -181,6 +181,7 @@ $string['gradeweighthelp'] = 'Grade Weight Help';
 $string['groupavg'] = 'Group average';
 $string['hidden'] = 'Hidden';
 $string['hiddenuntil'] = 'Hidden until';
+$string['hiddenuntildate'] = 'Hidden until: $a';
 $string['hideadvanced'] = 'Hide Advanced Features';
 $string['hidecalculations'] = 'Hide calculations';
 $string['hidecategory'] = 'Hidden';
@@ -225,6 +226,7 @@ $string['linkedactivityhelp'] = 'An optional activity this outcome item is linke
 $string['lock'] = 'Lock';
 $string['locked'] = 'Locked';
 $string['locktime'] = 'Lock after';
+$string['locktimedate'] = 'Locked after: $a';
 $string['lowest'] = 'Lowest';
 $string['lowgradeletter'] = 'Low';
 $string['mapfrom'] = 'Map from';