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

Make lesson's "Link to next activity" appear translated and with filters applied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.3.5, 4.4
    • Filters, Language, Lesson
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-81738-403
    • MDL-81738-404
    • MDL-81738-main
    • Hide

      As a teacher

      • Create a page activity with a multilang name:

        <span class="multilang" lang="en">A page (EN)</span><span class="multilang" lang="eu">Orri bat (EU)</span>
        

      • Create a lesson activity, and go to the "Link to next activity" ("Appearance" → "Show more") setting

      Result (after applying the patch):

      When browsing in English: The activity list shows a tuple with the module name and the activity name with filters applied: "Page - A page (EN)"

      When browsing in another language: The activity list shows a tuple with the module name translated to that language and the activity name with filters applied. In Basque would be "Orria - Orri bat (EU)" 

      Show
      As a teacher Create a page activity with a multilang name: <span class="multilang" lang="en">A page (EN)</span><span class="multilang" lang="eu">Orri bat (EU)</span> Create a lesson activity, and go to the "Link to next activity" ("Appearance" → "Show more") setting Result (after applying the patch): When browsing in English: The activity list shows a tuple with the module name and the activity name with filters applied: "Page - A page (EN)" When browsing in another language: The activity list shows a tuple with the module name translated to that language and the activity name with filters applied. In Basque would be "Orria - Orri bat (EU)" 

      While working on MDL-81733 I've realized that the lesson module's "Link to next activity" setting shows a list of the activities showing each activity's module and name concatenated.

      That activity list has two issues:

      • The module is always shown in English
      • The activity name doesn't apply the filters, so if the activity name is multilingual it shows the multilang syntax

       

            izendegi Iñigo Zendegi Urzelai
            izendegi Iñigo Zendegi Urzelai
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m

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