diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 1c51c694dd8..a7c7320aaf5 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -5233,6 +5233,7 @@ function places_to_search_for_lang_strings() { 'gradereport_' => array('grade/report'), 'gradeimport_' => array('grade/import'), 'gradeexport_' => array('grade/export'), + 'qformat_' => array('question/format'), 'profilefield_' => array('user/profile/field'), '' => array('mod') ); diff --git a/lib/questionlib.php b/lib/questionlib.php index 2e2d67739e2..33341f8c087 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -2080,7 +2080,10 @@ function get_import_export_formats( $type ) { if ($provided) { $formatname = get_string($fileformat, 'quiz'); if ($formatname == "[[$fileformat]]") { - $formatname = $fileformat; // Just use the raw folder name + $formatname = get_string($fileformat, 'qformat_'.$fileformat); + if ($formatname == "[[$fileformat]]") { + $formatname = $fileformat; // Just use the raw folder name + } } $fileformatnames[$fileformat] = $formatname; }