diff --git a/mod/quiz/format/xml/format.php b/mod/quiz/format/xml/format.php index 3d1dacddba4..3c562ff059d 100755 --- a/mod/quiz/format/xml/format.php +++ b/mod/quiz/format/xml/format.php @@ -245,7 +245,8 @@ function readquestions($lines) { // iterate through questions foreach ($xml['quiz']['#']['question'] as $question) { $question_type = $question['@']['type']; - echo "
question type = $question_type
"; + $questiontype = get_string( 'questiontype','quiz',$question_type ); + echo "$questiontype
"; if ($question_type=='multichoice') { $qo = $this->import_multichoice( $question ); @@ -260,7 +261,8 @@ function readquestions($lines) { $qo = $this->import_numerical( $question ); } else { - echo "Question type $question_type not currently supported for xml import
"; + $notsupported = get_string( 'xmlnotsupported','quiz',$question_type ); + echo "$notsupported
"; $qo = null; }