Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-39833

Change course Topic "Not available" string to something more informative (require token change)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.7, 2.4.4, 2.5
    • Fix Version/s: 2.7
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      Here is the testing instruction.

      1. Create a course.

      2. login as admin & Go to course/view.

      3. In the course settings set the course for "display hidden section as not available"

      4. turn editing on, and hide view sections/topics.

      5. login as student and see how they appears.

      They should have information about section or topic not available e.g. "PHP is not available".

      Show
      Here is the testing instruction. 1. Create a course. 2. login as admin & Go to course/view. 3. In the course settings set the course for "display hidden section as not available" 4. turn editing on, and hide view sections/topics. 5. login as student and see how they appears. They should have information about section or topic not available e.g. "PHP is not available".
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      When a teacher set the course for "display hidden section as not available", the students see a "Not available" message on the course front page which is not so clear to them. (as seen on the attached screen capture)

      I am suggesting to make it more clear by (maybe) changing the message along with the string token. Since get_string('notavailable') is used on other situations across moodle in which the context is correct and need not to change.

      Current code (course/format/renderer.php - 559):

      $o.= get_string('notavailable');
      

      Some suggestions:
      "Section 4 - Not available"

      $o.= get_string('section').' '.$sectionno.' - '.get_string('notavailable');
      

      "Section XYZ - Not available"

      // populate $section using $sectionnum
      $o.= get_string('section').' '.$section->name.' - '.get_string('notavailable');
      

      "Section XYZ is Not available at the moment"

      // populate $section using $sectionnum
      $o.= get_string('sectionnotavailable','mooodle',array(sectionname=>$section->name));
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14