]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8898
authorthepurpleblob <thepurpleblob>
Wed, 14 Mar 2007 12:55:04 +0000 (12:55 +0000)
committerthepurpleblob <thepurpleblob>
Wed, 14 Mar 2007 12:55:04 +0000 (12:55 +0000)
Improvements to error handling in question bank import/export.

lang/en_utf8/help/quiz/stoponerror.html [new file with mode: 0644]
lang/en_utf8/quiz.php
theme/standard/styles_layout.css

diff --git a/lang/en_utf8/help/quiz/stoponerror.html b/lang/en_utf8/help/quiz/stoponerror.html
new file mode 100644 (file)
index 0000000..4b62cd7
--- /dev/null
@@ -0,0 +1,11 @@
+<h1>Stop on error</h1>
+
+<p>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.</p>
+
+<p>If it is not checked, an attempt will be made to
+write any valid questions to the database.</p>
index a03b09f924c7ef839a5a3dc0733c15e19634feca..2a4a22cf6a05e0b580ceef32e90ea8c9253fd37f 100644 (file)
@@ -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';
index 6cd26f6a5a733e06a17bf17321b5d5fb0625c91e..1bbd8fb19bf96ce6ba576e32e2b3840d1574b385 100644 (file)
@@ -2180,6 +2180,11 @@ body#message-messages {
   width: 88%;
 }
 
+.importerror {
+  margin-top: 10px;
+  border-bottom: 1px solid #555;
+}
+
 /***
  *** Logs
  ***/