From 1e7386c9ad6d778ff75e2015a9cce0c8c29ba832 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 9 Apr 2008 03:10:26 +0000 Subject: [PATCH] MDL-14129, cannot use a full string in the param --- lang/en_utf8/error.php | 8 ++++++++ question/format.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lang/en_utf8/error.php b/lang/en_utf8/error.php index 96485f482f..280e756ded 100644 --- a/lang/en_utf8/error.php +++ b/lang/en_utf8/error.php @@ -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.'; diff --git a/question/format.php b/question/format.php index 2df8f3fc05..b8fad63be8 100644 --- a/question/format.php +++ b/question/format.php @@ -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); -- 2.39.5