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

Filters should be able to have language files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Filters
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Filters cannot have language files (a lang/ subdirectory).

      This is inconvenient when creating contrib filters as it means you cannot create a filter that is entirely contained within one directory.

      I intend to make filters work in the same way as everything else: if you call get_string('whatever','filter_something'), it then looks for filter_something.php in filter/something/lang/en_utf8 (as well as in lang/en_utf8).

      This is a one-line addition to existing code in moodlelib which was designed for this purpose, so should work across the board without causing problems.

      I searched code for get_string(.*filter_ and didn't find any, so this should not change any existing behaviour.

        Attachments

          Activity

            People

            • Assignee:
              quen Sam Marshall
              Reporter:
              quen Sam Marshall
              Tester:
              David Mudrák (@mudrd8mz)
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Ryan Wyllie
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08