Skip to content

Commit

Permalink
MDL-28507 fix bad lang string uses, and remove two obsolete strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Aug 2, 2011
1 parent f664cb7 commit bae927b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion local/qeupgradehelper/afterupgradelib.php
Expand Up @@ -60,7 +60,7 @@ protected function reset_progress($done, $outof) {
gc_collect_cycles(); // This was really helpful in PHP 5.2. Perhaps remove.
$a = new stdClass();
$a->done = $done;
$a->todo = $outof;
$a->outof = $outof;
$this->progressbar->update($done, $outof,
get_string('resettingquizattemptsprogress', 'local_qeupgradehelper', $a));
}
Expand Down
6 changes: 3 additions & 3 deletions mod/quiz/db/upgrade.php
Expand Up @@ -567,16 +567,16 @@ function xmldb_quiz_upgrade($oldversion) {
$pbar = new progress_bar('q15upgrade');
$pbar->create();
$a = new stdClass();
$a->todo = count($oldattempts);
$a->outof = count($oldattempts);
$a->done = 0;
$pbar->update($a->done, $a->todo,
$pbar->update($a->done, $a->outof,
get_string('upgradingveryoldquizattempts', 'quiz', $a));

foreach ($oldattempts as $oldattempt) {
quiz_upgrade_very_old_question_sessions($oldattempt);

$a->done += 1;
$pbar->update($a->done, $a->todo,
$pbar->update($a->done, $a->outof,
get_string('upgradingveryoldquizattempts', 'quiz', $a));
}
}
Expand Down
2 changes: 0 additions & 2 deletions mod/quiz/report/overview/lang/en/quiz_overview.php
Expand Up @@ -26,7 +26,6 @@
$string['allattempts'] = 'Show all attempts';
$string['allattemptscontributetograde'] = 'All attempts contribute to final grade for user.';
$string['allstudents'] = 'Show all {$a}';
$string['attemptprogress'] = 'Attempt {$a->done} of {$a->todo}';
$string['attemptsonly'] = 'Show {$a} with attempts only';
$string['attemptsprepage'] = 'Attempts shown per page';
$string['deleteselected'] = 'Delete selected attempts';
Expand Down Expand Up @@ -56,7 +55,6 @@
$string['preferencespage'] = 'Preferences just for this page';
$string['preferencessave'] = 'Show report';
$string['preferencesuser'] = 'Your preferences for this report';
$string['qprogress'] = 'Question {$a->done} of {$a->todo}';
$string['regrade'] = 'Regrade';
$string['regradeall'] = 'Regrade all';
$string['regradealldry'] = 'Dry run a full regrade';
Expand Down

0 comments on commit bae927b

Please sign in to comment.