MDL-43466 mod_assign: improve submission help text
authorMark Nelson <markn@moodle.com>
Wed, 13 Dec 2017 07:25:36 +0000 (15:25 +0800)
committerMark Nelson <markn@moodle.com>
Wed, 13 Dec 2017 07:38:45 +0000 (15:38 +0800)
Thanks go to Rajneel Totaram for the report.

mod/assign/lang/en/assign.php
mod/assign/renderer.php

index 9b4be33..949ae5b 100644 (file)
@@ -24,6 +24,7 @@
 
 $string['activityoverview'] = 'You have assignments that need attention';
 $string['addsubmission'] = 'Add submission';
+$string['addsubmission_help'] = 'You have not made a submission yet';
 $string['addattempt'] = 'Allow another attempt';
 $string['addnewattempt'] = 'Add a new attempt';
 $string['addnewattempt_help'] = 'This will create a new blank submission for you to work on.';
@@ -162,7 +163,7 @@ $string['editingpreviousfeedbackwarning'] = 'You are editing the feedback for a
 $string['editoverride'] = 'Edit override';
 $string['editsubmission'] = 'Edit submission';
 $string['editsubmissionother'] = 'Edit submission for {$a}';
-$string['editsubmission_help'] = 'Make changes to your submission';
+$string['editsubmission_help'] = 'You can still make changes to your submission';
 $string['editingstatus'] = 'Editing status';
 $string['editaction'] = 'Actions...';
 $string['enabled'] = 'Enabled';
index 649e674..b3ba273 100644 (file)
@@ -925,7 +925,7 @@ class mod_assign_renderer extends plugin_renderer_base {
                     $o .= $this->output->single_button(new moodle_url('/mod/assign/view.php', $urlparams),
                                                        get_string('addsubmission', 'assign'), 'get');
                     $o .= $this->output->box_start('boxaligncenter submithelp');
-                    $o .= get_string('editsubmission_help', 'assign');
+                    $o .= get_string('addsubmission_help', 'assign');
                     $o .= $this->output->box_end();
                     $o .= $this->output->box_end();
                 } else if ($submission->status == ASSIGN_SUBMISSION_STATUS_REOPENED) {