]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14129, cannot use a full string in the param
authordongsheng <dongsheng>
Wed, 9 Apr 2008 03:10:26 +0000 (03:10 +0000)
committerdongsheng <dongsheng>
Wed, 9 Apr 2008 03:10:26 +0000 (03:10 +0000)
lang/en_utf8/error.php
question/format.php

index 96485f482f635f4427c9868c4a63111d3e85a10e..280e756dedc02a3a6a5e727b016d565ed31f28bc 100644 (file)
@@ -3,7 +3,11 @@
 
 
 $string['adminprimarynoedit'] = 'The primary admin cannot be edited by others';
+$string['blockdoesnotexist'] = 'This block does not exist';
+$string['blockcannotinistantiate'] = 'Problem in instantiating block object';
+$string['blockcannotconfig'] = 'This block does not support global configuration';
 $string['cannotassignrole'] = 'Cannot assign role in course';
+$string['cannotsaveconfig'] = 'Problem saving config \"$a[0]\" as \"$a[1]\" for plugin \"$a[2]\"'; 
 $string['cannotcreatelangdir'] = 'Cannot create lang dir.';
 $string['cannotcreatetempdir'] = 'Cannot create temp dir.';
 $string['cannotcustomizelocallang'] = 'You do not have permission to customize the strings translation.  This permission is controlled by the capability "moodle/site:langeditlocal". Set this capability to allow you to edit local language packages in case you want to modify translations for your site.';
@@ -12,6 +16,10 @@ $string['cannotdownloadlanguageupdatelist'] = 'Cannot download list of language
 $string['cannotdownloadzipfile'] = 'Cannot download ZIP file.';
 $string['cannoteditmasterlang'] = 'You do not have permission to edit master language package. This permission is controlled by the capability "moodle/site:langeditmaster". Set this capability to allow you to edit master language packages in case you are the maintainer of a package.';
 $string['cannotfindcomponent'] = 'Cannot find component.';
+$string['cannotfindcategory'] = 'Cannot find category record from database by ID - $a';
+$string['cannotfinddocs'] = 'Cannot find \"$a\" language docs files';
+$string['cannotfindhelp'] = 'Cannot find \"$a\" language help files';
+$string['cannotsavefile'] = 'Cannot save the file \"$a\".';
 $string['cannotsavemd5file'] = 'Cannot save md5 file.';
 $string['cannotsavezipfile'] = 'Cannot save ZIP file.';
 $string['cannotunzipfile'] = 'Cannot unzip file.';
index 2df8f3fc05420d39d646f7f4d3c67794257f2192..b8fad63be8f030564091e054fc3f27b69e2b2d75 100644 (file)
@@ -712,7 +712,7 @@ class qformat_default {
     function get_category_path($id, $delimiter='/', $includecontext = true) {
         $path = '';
         if (!$firstcategory = get_record('question_categories','id',$id)) {
-            print_error( "Error getting category record from db - $id" );
+            print_error('cannotfindcategory', 'error', '', $id);
         }
         $category = $firstcategory;
         $contextstring = $this->translator->context_to_string($category->contextid);