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

custom data fields seem to have theoretical support for their own lang dirs, but not supported in the field list table

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.8, 1.9.5
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      places_to_search_for_lang_strings supports:

      'datafield_' => array('mod/data/field'),

      but the code that draws up the table of fields (mod/data/field.php) has:

      $field->image().' '.get_string($field->type, 'data'),

      rather than something like

      $field->image().' '.get_string('name', 'datafield_'.$field->type)

      Unfortunately since get_string always returns a string it's hard to test first to see if the first place to look returned something before trying the next place (datafield_$type), unless we test for strpos [[ or something which is kind of ick.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              mjollnir Penny Leach
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: