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

Multi Lang filter not working on navigation of grading header in Forums

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8.5, 3.9.1
    • Fix Version/s: None
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course Name with name and shortnames in multiple languages
      2. Create a forum discussion with posts from multiple users
      3. Log in as manager/ teacher/tutor and go to forums -> Grade Users
      4. Observe that the name(rather shortname) of the course appears in the navigation  with span tags like this:
        <span lang="en" class="multilang">Course Short Name</span><span lang="de" class="multilang">Course Short Name</span>
      5. Apply the changes
      6. Go to forum grading again(following steps 1 to 3)
      7. The course short name should appear correctly in the navigation
      Show
      Create a course Name with name and shortnames in multiple languages Create a forum discussion with posts from multiple users Log in as manager/ teacher/tutor and go to forums -> Grade Users Observe that the name(rather shortname) of the course appears in the navigation  with span tags like this: <span lang="en" class="multilang">Course Short Name</span><span lang="de" class="multilang">Course Short Name</span> Apply the changes Go to forum grading again(following steps 1 to 3) The course short name should appear correctly in the navigation
    • Affected Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull from Repository:
    • Pull 3.8 Branch:
      MDL69662_38
    • Pull 3.9 Branch:
      MDL69662_39
    • Pull 3.10 Branch:
      MDL69662_310
    • Pull Master Branch:
      MDL69662_master

      Description

      We use multi lang filter for course name. But the multilang filters dont get interpreted correctly in the navigation of grading header in forums.

      I checked the tracker and found this issue https://tracker.moodle.org/browse/MDL-69553

      I implemented the change mentioned here but it doesnt work.

      My guess is this happens because the coursename is getting derived from a javascript and passed onto the mustache template file. So the coursename never goes through the format_string function which it normally does when it is passed from a php file. Can anybody help me on how I can use the format_string function within the javascript file?

        Attachments

          Activity

            People

            Assignee:
            tschroeder Tim Schroeder
            Reporter:
            A_Deb Amrita
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: