Fixes for bug 2591 - wrong strings being used

This commit is contained in:
moodler 2005-03-03 06:24:44 +00:00
parent 5528a7f0e0
commit fb94189268
2 changed files with 4 additions and 2 deletions

View File

@ -43,6 +43,8 @@ $string['casesensitive'] = 'Case sensitivity';
$string['caseyes'] = 'Yes, case must match';
$string['categories'] = 'Categories';
$string['category'] = 'Category';
$string['categoryadded'] = 'The category \'$a\' was added';
$string['categorydeleted'] = 'The category \'$a\' was deleted';
$string['categoryinfo'] = 'Category info';
$string['categorymove'] = 'The category \'$a->name\' contains $a->count questions. Please choose another category to move them to.';
$string['categorymoveto'] = 'Move them to this category';

View File

@ -641,7 +641,7 @@ class quiz_category_object {
/// Finally delete the category itself
if (delete_records("quiz_categories", "id", $category->id)) {
notify(get_string("categorydeleted", "", $category->name), 'green');
notify(get_string("categorydeleted", "quiz", $category->name), 'green');
}
}
@ -757,7 +757,7 @@ class quiz_category_object {
if (!insert_record("quiz_categories", $cat)) {
error("Could not insert the new quiz category '$newcategory'", "category.php?id={$newcourse}");
} else {
notify(get_string("categoryadded", "", $newcategory), 'green');
notify(get_string("categoryadded", "quiz", $newcategory), 'green');
}
}