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

glossary should use format-specific strings for concept and definition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.2, 1.9.3, 1.9.4, 1.9.5
    • Fix Version/s: None
    • Component/s: Glossary
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      The glossary add/edit page uses an mform that does not do format-specific string lookups for the words "concept" and "definition".

      My suggestion is to add two methods to each /mod/glossary/formats/XXX/XXX_format.php file:

      function glossary_get_concept_string_XXX

      and

      function glossary_get_concetp_string_XXX

      as well as two functions in /glossary/lib.php

      function glossary_get_concept_string($displayformat)

      and

      function glossary_get_definition_string($displayformat)

      This also requires calling these function in the mform in mod/glossary/edit_form.php, as well as a changes to each format to add these functions and to call them as required.

      I will attach a patch for 1.9.x after the JIRA has been created.

      Thanks,

      Brian

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              brianj Brian Jorgensen
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: