From b5abaacf51297653ea8946c699fa375c0f2313ff Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Tue, 17 May 2005 14:12:42 +0000 Subject: [PATCH] Sorted hard coded string. --- mod/quiz/format/xml/format.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; }