Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.0.3, 2.1.1
    • None
    • Course
    • MOODLE_20_STABLE, MOODLE_21_STABLE

    Description

      The non-default section names of a course (in topic view) are not displayed correctly with multilang filter turned on. It shows all texts one after another.

      FIX:
      Just add a format_string() to line 222 in /course/format/topics/format.php

      echo $OUTPUT->heading(format_string($thissection->name), 3, 'sectionname');

      Another fix regarding multilang in section names: If you edit a section/summary of a section, the title "Summary of..." is not displayed correctly. This can be fixed in line 69 of /course/editsection.php
      $strsummaryof = get_string('summaryof', '', format_string("$sectionname"));

      ###
      I updated this issue adding some screenshots. I think it's an important fix for multilingual moodle installations, because every student will see this bug in a course.

      Attachments

        1. after_fix.JPG
          after_fix.JPG
          32 kB
        2. before_fix.JPG
          before_fix.JPG
          34 kB

        Issue Links

          Activity

            People

              moodle.com moodle.com
              gmorz Dominik Jeni
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: