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

Alt text in the pix mustache helper is not translated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9, 3.0
    • Fix Version/s: 2.9.1
    • Component/s: Accessibility
    • Labels:
    • Testing Instructions:
      Hide

      Test setup

      • Download the attached files and place them:
        • 50520test.php: in the root of your moodle installation
        • test.mustache: in lib/templates
      • Purge your caches.

      Javascript test

      • Go to Site administration -> Development -> Template library and view the new template, core/test.
      • Right-click the search icon that is displayed and inspect it, verifying that the alt text for the image is "Search" (or the equivalent in your active language pack).

      PHP test

      • Go to 50520test.php.
      • Right-click the search icon that is displayed and inspect it, verifying that the alt text for the image is "Search" (or the equivalent in your active language pack).
      Show
      Test setup Download the attached files and place them: 50520test.php : in the root of your moodle installation test.mustache : in lib/templates Purge your caches. Javascript test Go to Site administration -> Development -> Template library and view the new template, core/test . Right-click the search icon that is displayed and inspect it, verifying that the alt text for the image is "Search" (or the equivalent in your active language pack). PHP test Go to 50520test.php. Right-click the search icon that is displayed and inspect it, verifying that the alt text for the image is "Search" (or the equivalent in your active language pack).
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-50520-master
    • Sprint:
      Team Beards Sprint 7

      Description

      {{#pix}}a/search, ,{{#str}}search{{/str}}{{/pix}}
      

      The above will produce an image with the alt text that is not translated.

      Edit 17/06/2015
      This issue affects Javascript rendering of templates only, and corrects behaviour of the pix mustache helper (https://docs.moodle.org/dev/Templates#What_other_helpers_can_I_use.3F).

        Attachments

        1. 50520test.php
          0.4 kB
        2. test.mustache
          1 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                6/Jul/15