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

Add-on validation message always shows "foundlangfile" (Debug)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not a bug
    • 2.7
    • None
    • Administration
    • MOODLE_27_STABLE
    • MDL-46253-master
    • Hide

      To test this issue, you must download a plugin with just one language package.
      I've tested using this add-on:
      https://moodle.org/plugins/pluginversions.php?plugin=auth_zilink_saml

      After download go to:

      1. Site Administration > Plugins > Install add-ons
      2. Select the add-on zip file and upload it.
      3. Click on Install add-on from ZIP file button.

      You should see a message with status OK on the foundlangfile item.

      Show
      To test this issue, you must download a plugin with just one language package. I've tested using this add-on: https://moodle.org/plugins/pluginversions.php?plugin=auth_zilink_saml After download go to: Site Administration > Plugins > Install add-ons Select the add-on zip file and upload it. Click on Install add-on from ZIP file button. You should see a message with status OK on the foundlangfile item.
    • 3
    • BACKEND Sprint 14

    Description

      Debug message can be confusing to most users.

      When installing a plugin/module through Moodle interface , Add-on Package validation page display Message "foundlangfile" with status 'Debug'. It looks like as if something is wrong.

      File : /admin/tool/installaddon/classes/validator.php
      Line : 397
      Incorrect : $this->add_message(self::DEBUG, 'foundlangfile', $this->langfilename);
      Correct : $this->add_message(self::OK, 'foundlangfile', $this->langfilename);

      I am not sure if setting it to DEBUG is done for a reason.

      Attachments

        Activity

          People

            lameze Simey Lameze
            pinky Pinky Sharma
            David Monllaó David Monllaó
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: