diff --git a/admin/uploaduser.php b/admin/uploaduser.php
index 1a83c4a4da6..c442213e14a 100755
--- a/admin/uploaduser.php
+++ b/admin/uploaduser.php
@@ -96,7 +96,8 @@ if (empty($iid)) {
unset($content);
if ($readcount === false) {
- print_error($cir->get_error(), '', $returnurl);
+ //TODO: need more detailed error info
+ print_error('csvloaderror', '', $returnurl);
} else if ($readcount == 0) {
print_error('csvemptyfile', 'error', $returnurl);
}
diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php
index 7f9659af88c..6cceb911c1e 100755
--- a/enrol/authorize/enrol.php
+++ b/enrol/authorize/enrol.php
@@ -92,7 +92,7 @@ class enrolment_plugin_authorize
break;
}
if (!empty($authorizeerror)) {
- print_error($authorizeerror);
+ print_error('authorizeerror');
}
}
$frmenrol->display();
diff --git a/grade/import/xml/import.php b/grade/import/xml/import.php
index 6407e475146..a7b41e27409 100644
--- a/grade/import/xml/import.php
+++ b/grade/import/xml/import.php
@@ -85,7 +85,7 @@ if ($importcode !== false) {
}
} else {
- print_error($error);
+ print_error('error', 'gradeimport_xml');
}
?>
diff --git a/lang/en_utf8/error.php b/lang/en_utf8/error.php
index f9d85fdeed6..ceb5a1061b8 100644
--- a/lang/en_utf8/error.php
+++ b/lang/en_utf8/error.php
@@ -3,6 +3,7 @@
$string['adminprimarynoedit'] = 'The primary admin cannot be edited by others';
+$string['authorizeerror'] = 'Authorize Error';
$string['blockdoesnotexist'] = 'This block does not exist';
$string['blockcannotinistantiate'] = 'Problem in instantiating block object';
$string['blockcannotread'] = 'Could not read data for blockid= $a ';
@@ -174,6 +175,7 @@ $string['csvfewcolumns'] = 'Not enough columns, please verify the delimiter sett
$string['csvinvalidcolsnum'] = 'INVALID CSV FILE; Each line must include 49 or 70 fields';
$string['csvinvalidcols'] = 'INVALID CSV FILE: First line must include "Header Fields" and the file must be type of
"Expanded Fields/Comma Separated"
or
"Expanded Fields with CAVV Result Code/Comma Separated"';
$string['csvweirdcolumns'] = 'Invalid CSV file format - number of columns is not constant!';
+$string['csvloaderror'] = 'Error occur during loading vcs file!';
$string['dbconnectionfailed'] = '
Error: Database connection failed.
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
$a'; diff --git a/lang/en_utf8/gradeimport_xml.php b/lang/en_utf8/gradeimport_xml.php index ec2e5f4a392..e2f3bb74136 100644 --- a/lang/en_utf8/gradeimport_xml.php +++ b/lang/en_utf8/gradeimport_xml.php @@ -1,5 +1,6 @@ name $string['errorupdatingattempt'] = 'Error updating attempt $a->id in the database.'; $string['emptyxml'] = 'Unkown error - empty imsmanifest.xml'; $string['exportcategory'] = 'Export category'; +$string['exporterror'] = 'Errors occur during exporting!'; $string['filesareasite']= 'the site files area'; $string['filesareacourse']= 'the course files area'; $string['filestomove']= 'Move / copy files to $a?'; @@ -125,6 +126,7 @@ $string['questionbank'] = 'Question bank'; $string['questioncategory'] = 'Question category'; $string['questioncatsfor'] = 'Question Categories for \'$a\''; $string['questiondoesnotexist'] = 'This question does not exist'; +$string['questionsaveerror'] = 'Errors occur during saving question - ($a)'; $string['questionsmovedto'] = 'Questions still in use moved to "$a" in the parent course category.'; $string['questionsrescuedfrom'] = 'Questions saved from context $a.'; $string['questionsrescuedfrominfo'] = 'These questions (some of which may be hidden) where saved when context $a was deleted because they are still used by some quizzes or other activities.'; diff --git a/lang/en_utf8/quiz.php b/lang/en_utf8/quiz.php index 172fc36cabb..0611cef4682 100644 --- a/lang/en_utf8/quiz.php +++ b/lang/en_utf8/quiz.php @@ -53,6 +53,7 @@ $string['attempt'] = 'Attempt $a'; $string['attemptclosed'] = 'Attempt has not closed yet'; $string['attemptduration'] = 'Time taken'; $string['attemptedon'] = 'Attempted on'; +$string['attempterror'] = 'Attempt error'; $string['attemptfirst'] = 'First attempt'; $string['attemptincomplete'] = 'That attempt (by $a) is not yet completed.'; $string['attemptlast'] = 'Last attempt'; @@ -252,6 +253,7 @@ $string['finishreview'] = 'Finish review'; $string['forceregeneration'] = 'force regeneration'; $string['formatnotfound'] = 'Import/export format $a not found'; $string['formatnotimplemented'] = 'This format has not been correctly implemented, please post a bug report'; +$string['formulaerror'] = 'Formula errors!'; $string['fractionsaddwrong'] = 'The positive grades you have chosen do not add up to 100%%