MDL-55767 competency: Deprecate langstring and replace

This commit is contained in:
Andrew Nicols 2016-10-03 12:59:32 +08:00
parent aac3b0bebb
commit dbab30b127
3 changed files with 8 additions and 3 deletions

View File

@ -42,7 +42,8 @@ class invalid_persistent_exception extends \moodle_exception {
$debuginfo[] = "$key: $message";
$forhumans[] = $message;
}
parent::__construct('invalidpersistent', 'core_competency', null, implode(', ', $forhumans), implode(' - ', $debuginfo));
parent::__construct('invalidpersistenterror', 'core_competency', null,
implode(', ', $forhumans), implode(' - ', $debuginfo));
}
}

View File

@ -103,7 +103,7 @@ $string['evidence_manualoverrideincourse'] = 'The competency rating was manually
$string['evidence_manualoverrideinplan'] = 'The competency rating was manually set in the learning plan \'{$a}\'.';
$string['invalidevidencedesc'] = 'Invalid evidence description';
$string['invalidgrade'] = 'Invalid rating';
$string['invalidpersistent'] = 'Error: {$a}';
$string['invalidpersistenterror'] = 'Error: {$a}';
$string['invalidplan'] = 'Invalid learning plan';
$string['invalidtaxonomy'] = 'Invalid taxonomy: {$a}';
$string['invalidurl'] = 'The URL is not valid. Make sure it starts with \'http://\' or \'https://\'.';
@ -151,3 +151,6 @@ $string['usercompetencystatus_idle'] = 'Idle';
$string['usercompetencystatus_inreview'] = 'In review';
$string['usercompetencystatus_waitingforreview'] = 'Waiting for review';
$string['userplans'] = 'Learning plans';
// Deprecated since Moodle 3.2.
$string['invalidpersistent'] = 'Invalid persistent';

View File

@ -32,4 +32,5 @@ downloadexcel,core_table
downloadods,core_table
downloadoptions,core_table
downloadtsv,core_table
downloadxhtml,core_table
downloadxhtml,core_table
invalidpersistent,core_competency