From 533f9aeab353bc37fc5bbdf2ebe66cf0282e2165 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Wed, 14 Mar 2007 12:55:04 +0000 Subject: [PATCH] MDL-8898 Improvements to error handling in question bank import/export. --- lang/en_utf8/help/quiz/stoponerror.html | 11 +++++++++++ lang/en_utf8/quiz.php | 2 ++ theme/standard/styles_layout.css | 5 +++++ 3 files changed, 18 insertions(+) create mode 100644 lang/en_utf8/help/quiz/stoponerror.html diff --git a/lang/en_utf8/help/quiz/stoponerror.html b/lang/en_utf8/help/quiz/stoponerror.html new file mode 100644 index 0000000000..4b62cd7fe4 --- /dev/null +++ b/lang/en_utf8/help/quiz/stoponerror.html @@ -0,0 +1,11 @@ +

Stop on error

+ +

Questions are imported in two passes. First the +imput file is 'parsed' and checked for validity. Then +it is written to the database. If this option is +selected (default) and an error is detected in the +parsing pass then no attempt will be made to write +to the database.

+ +

If it is not checked, an attempt will be made to +write any valid questions to the database.

diff --git a/lang/en_utf8/quiz.php b/lang/en_utf8/quiz.php index a03b09f924..2a4a22cf6a 100644 --- a/lang/en_utf8/quiz.php +++ b/lang/en_utf8/quiz.php @@ -331,6 +331,7 @@ $string['overdue'] = 'Overdue'; $string['pagesize'] = 'Attempts shown per page:'; $string['paragraphquestion'] = 'Paragraph Question not supported at line $a. The question will be ignored'; $string['parent'] = 'Parent'; +$string['parsingquestions'] = 'Parsing questions from import file.'; $string['partiallycorrect'] = 'Partially correct'; $string['passworderror'] = 'The password entered was incorrect'; $string['penalty'] = 'Penalty'; @@ -482,6 +483,7 @@ $string['sortsubmit'] = 'Sort questions'; $string['sorttypealpha'] = 'Sort by type, name'; $string['startagain'] = 'Start again'; $string['startedon'] = 'Started on'; +$string['stoponerror'] = 'Stop on error'; $string['subneterror'] = 'Sorry, this quiz has been locked so that it is only accessible from certain locations. Currently your computer is not one of those allowed to use this quiz.'; $string['subnetnotice'] = 'This quiz has been locked so that it is only accessible from certain locations. Your computer is not on an allowed subnet. As teacher you are allowed to preview anyway.'; $string['substitutedby'] = 'will be substituted by'; diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 6cd26f6a5a..1bbd8fb19b 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -2180,6 +2180,11 @@ body#message-messages { width: 88%; } +.importerror { + margin-top: 10px; + border-bottom: 1px solid #555; +} + /*** *** Logs ***/ -- 2.39.5