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

Section name not displayed, wrong language module used


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.9, 1.9.5
    • 1.9
    • Course, Language
    • None
    • MS Windows Vista Business
      XAMPP version 1.6.1
      - Apache 2.2.4
      - MySQL 5.0.37
      - PHP 5.2.1
    • MySQL

      In section editing dialog the text for the course-format specific section name identifier is not displayed anyway in custom course formats. In these cases the language file "lang/.../moodle.php" is used because it is hard-coded in "course/format/editsection.php" (line 55 in my moodle 1.9 dev version from latest nightly build). But this global language file does only support the build-in course formats and is the wrong one in these cases. For build-in course formats like weekly, social, etc. all works fine but it cannot be changed to specific language files in custom course formats in spite what the course format extension specification says. It is globally hard-coded, but it should not be

      To get the course formats being modular and able to be extended it is necessary to change the call of get_string() in editsection.php to use the language file of the actual course format instead of the global language file if such one is available. Maybe it will be a good solution to define the language constants for format and section names for all (also build-in) course format in its own language files?

      Unfortunately I do not know which dependencies of this problem are affected, so I cannot change the code myself.

            stronk7 Eloy Lafuente (stronk7)
            gesa Gert Sauerstein
            Sam Hemelryk Sam Hemelryk
            2 Vote for this issue
            3 Start watching this issue


                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.