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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.8.5, 3.9.1
    • Forum
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL69662_master
    • 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

      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?

        1. forumgrading-SO.png
          forumgrading-SO.png
          11 kB
        2. forum_grade_39.png
          forum_grade_39.png
          66 kB
        3. forum_grade_310.png
          forum_grade_310.png
          126 kB

            tschroeder Tim Schroeder
            A_Deb Amrita Deb Dutta
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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