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

No preview when you edit utf8 help files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6
    • Component/s: Language
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE

      Description

      Preview doesn't work when translating help files because $forcelang param is filtered in help.php as PARAM_ALPHAEXT and then the '8' is removed from 'en_utf8'. Resulting $filepath is wrong:

      dataroot/lang/en_utf/help/accessibility.html

      > lib/moodlelib.php

      >

      > case PARAM_ALPHAEXT: // Remove everything not a-zA-Z/_-

      > return eregi_replace('[^a-zA-Z/_-]', '', $param);

        Attachments

          Activity

            People

            Assignee:
            mudrd8mz David Mudrák (@mudrd8mz)
            Reporter:
            imported Imported
            Participants:
            Component watchers:
            cameron1729, David Mudrák (@mudrd8mz), Helen Foster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              20/Jun/06