Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29160 META: en language pack improvements
  3. MDL-31651

The title of the course info page is hardcoded

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.4, 2.2.1
    • 2.1.5, 2.2.2
    • Course
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • Hide

      Understanding English

      Show
      Understanding English
    • Hide

      [simple cheating instructions]
      1/ Install the german lang pack
      2/ Visit http://moodle/course/info.php?id=3&?lang=de [where 3 is a valid course id]
      Expected result:

      • The title is in german
        Actual Result:
      • Title is hardcoded english

      [Advanced through instructions]

      • On the course/ page, select a categories with many courses (more than 10).
      • Click on the blue icon right next to any course
      • Select another language than english
      • The title won't change
      Show
      [simple cheating instructions] 1/ Install the german lang pack 2/ Visit http://moodle/course/info.php?id=3&?lang=de [where 3 is a valid course id] Expected result: The title is in german Actual Result: Title is hardcoded english [Advanced through instructions] On the course/ page, select a categories with many courses (more than 10). Click on the blue icon right next to any course Select another language than english The title won't change

    Description

      The course info title is hard coded.

      To repair, simply replace this code at line 40:

      course/info.php

      $PAGE->set_heading('Course info');

      with:

      course/info.php

      $PAGE->set_heading(get_string('courseinfo'));

      Attachments

        Activity

          People

            poltawski Dan Poltawski
            leblangi Gilles-Philippe Leblanc
            Dan Poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Davis Andrew Davis
            Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Mar/12