Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: Conditional activities, Language
-
Labels:None
-
Difficulty:Easy
-
Affected Branches:MOODLE_20_STABLE
Description
Helen,
Currently defined as - $string['requires_date_before']='Not available from $a.';
It displays something like:
Activity conditionally restricted: 'Not available until 17 March 2009.Not available from 20 March 2009.'
Because of the phrasing of it not being available I think 'from' would read better if it were 'after' which is ironic considering the name of the string. That would produce:
Activity conditionally restricted: 'Not available until 17 March 2009.Not available after 20 March 2009.'
which I think makes more sense. I'll attach a patch.
Looking at the string names, I wonder if we might want to consider making all of the Not available statements into the more positive available statements. That could produce something like:
Activity conditionally restricted: 'Available beginning 17 March 2009. Available until 20 March 2009.' or
Activity conditionally restricted: 'Available beginning 17 March 2009. Available before 20 March 2009.'
I also noticed that the get_full_information function in conditionlib.php is not putting a space between the different conditions so we may want to end each of those with a space. This started out as a simple request to change a word but the more I looked at it the more ideas that came to mind. I'll stop for now
Peace - Anthony
attaching two diff files - the first just changes the requires_date_before string. The positive one changes all of the require statements to positive statements rather than negative. Rather than telling them when it is not available, we can tell them when it is available. Also this string struck me as odd:
$string['requires_completion_3']='Not available unless the activity <strong>$a</strong> is complete and failed.';
Might this indicate to the student that they are to try and fail it? Not only complete it but because of the and they are also required to fail it. I understand the intent is to accept both completion and failures but it is strangely worded. I actually think it would be better if it said that it were available when the activity is either completed or failed.
Peace - Anthony