Details
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
| This issue has a non-specific relationship to: | ||||
| MDL-16926 | Adding/creating a new resource type needs to name it in the global resource.php language file |
|
|
|
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
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.