Moodle

Creation a new import format for lessons is not modular

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.2
  • Fix Version/s: None
  • Component/s: Filters, Language, Lesson
  • Labels:
    None
  • Environment:
    Debian4, Mysql5, php5
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE

Description

similar as MDL-16926, when creating a new import filter for the questions of a lesson, the localization is in the top level 'quiz.php' language file...

I suggest this patch in the /lib/questionlib.php
function get_import_export_formats
line 2058

== original ==
if ($formatname == "[[$fileformat]]") { $formatname = $fileformat; // Just use the raw folder name }
== Suggestion ==
if ($formatname == "[[$fileformat]]") {
$formatname = get_string($fileformat, $fileformat, NULL, "$CFG->dirroot/question/format/$fileformat/lang/");
if ($formatname == "[[$fileformat]]") { $formatname = $fileformat; // Just use the raw folder name }
}
== END ==

Issue Links

Activity

Hide
Martin Dougiamas added a comment -

Reassigning this to moodle.com for the time being, since Mark Nielsen is not maintaining Lesson any more. Please comment/vote/patch any crucial bugs that affect you for 2.0 to help us prioritise fixes for the upcoming release.

Show
Martin Dougiamas added a comment - Reassigning this to moodle.com for the time being, since Mark Nielsen is not maintaining Lesson any more. Please comment/vote/patch any crucial bugs that affect you for 2.0 to help us prioritise fixes for the upcoming release.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: