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

blocks/loancalc/block_loancalc.php
blocks/loancalc/lang/en/block_loancalc.php

index 33bf1a6..9ae7200 100644 (file)
@@ -3,7 +3,7 @@
 class block_loancalc extends block_base {
 
     function init() {
-        $this->title = get_string('loancalc','block_loancalc');
+        $this->title = get_string('pluginname','block_loancalc');
         $this->content_type = BLOCK_TYPE_TEXT;
         $this->version = 2007101509;
     }
index 98515a5..18db37b 100644 (file)
@@ -26,9 +26,9 @@
 $string['amountofloan'] = 'Amount of loan';
 $string['fortnightly'] = 'Fortnightly';
 $string['interestrate'] = 'Interest rate';
-$string['loancalc'] = 'Loan calculator';
 $string['loanterm'] = 'Loan term (years)';
 $string['monthly'] = 'Monthly';
+$string['pluginname'] = 'Loan calculator';
 $string['repaymentamount'] = 'Repayment amount';
 $string['repaymentfreq'] = 'Repayment frequency';
 $string['weekly'] = 'Weekly';