Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.3, 2.1.1, 2.2
    • 2.0.5, 2.1.2
    • Blocks
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • wip-MDL-29006-master
    • Hide
      1. Log in as an admin
      2. In a course create an html block and give it a multilang block
      3. While editing the block go to the permissions screen for the block (Settings block > Block: blockname > Permissions)
      4. Remove the teachers ability to edit the block by removing teacher from the roles with permission list (moodle/block:edit)
      5. Log in as the teacher
      6. Browse to edit the block
      7. Make sure you see the translated strip and not the raw string.

      Multilang string example: <span class="multilang" lang="en">Some</span><span class="multilang" lang="nz">Sum</span>

      Show
      Log in as an admin In a course create an html block and give it a multilang block While editing the block go to the permissions screen for the block (Settings block > Block: blockname > Permissions) Remove the teachers ability to edit the block by removing teacher from the roles with permission list (moodle/block:edit) Log in as the teacher Browse to edit the block Make sure you see the translated strip and not the raw string. Multilang string example: <span class="multilang" lang="en">Some</span><span class="multilang" lang="nz">Sum</span>

    Description

      We created sticky blocks on mymoodle of type block_html like described in MDL-26103.
      In the block title, we used multilang tags to support several languages.

      If the user views the block, multilang filter works as expexted. When the user clicks on "edit block", he is shown the preference page of the block. That's ok for this ticket. On this preference page, the block title field is read-only, which is also totally ok.

      The Problem is now: multilang filter is not applied on the block title field, so the multilang tags are visible to the user.

      See (german) screenshot attached for clarification.

      Attachments

        Activity

          People

            samhemelryk Sam Hemelryk
            abias Alexander Bias
            Andrew Davis Andrew Davis
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rossiani Wijaya Rossiani Wijaya
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Oct/11