MDL-22054 converting block name strings to pluginname
authorPetr Skoda <skodak@moodle.org>
Sun, 11 Apr 2010 11:36:04 +0000 (11:36 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 11 Apr 2010 11:36:04 +0000 (11:36 +0000)
AMOS START
 MOV [formaltitle,block_quiz_results],[pluginname,block_quiz_results]
AMOS END

blocks/quiz_results/block_quiz_results.php
blocks/quiz_results/lang/en/block_quiz_results.php

index 008219d..08ee2ea 100644 (file)
@@ -9,7 +9,7 @@ define('B_QUIZRESULTS_GRADE_FORMAT_ABS', 3);
 
 class block_quiz_results extends block_base {
     function init() {
-        $this->title = get_string('formaltitle', 'block_quiz_results');
+        $this->title = get_string('pluginname', 'block_quiz_results');
         $this->version = 2007101509;
     }
 
index 7a8f9b7..2c9b9f1 100644 (file)
@@ -44,7 +44,7 @@ $string['config_use_groups'] = 'Show groups instead of students (only if the qui
 $string['error_emptyquizid'] = 'There is an error right now with this block: you need to select which quiz it should display results from.';
 $string['error_emptyquizrecord'] = 'There is an error right now with this block: the selected quiz does not seem to exist in the database.';
 $string['error_nogroupsexist'] = 'There is an error right now with this block: it is set to display grades in group mode, but the course has no defined groups.';
-$string['formaltitle'] = 'Quiz Results';
+$string['pluginname'] = 'Quiz Results';
 $string['worstgrade'] = 'The lowest grade:';
 $string['worstgrades'] = 'The {$a} lowest grades:';
 $string['worstgroupgrade'] = 'The group with the lowest average:';