From 373ee66017adf1ac1fc72fb3fb2ea4453035184e Mon Sep 17 00:00:00 2001 From: arborrow Date: Sat, 20 Jun 2009 23:33:38 +0000 Subject: [PATCH] MDL-19950 - adding question format (qformat_) language plugin type --- lib/moodlelib.php | 1 + lib/questionlib.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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; }