Skip to content

Commit

Permalink
MDL-74857 language: Start using the 'statusok' string for status
Browse files Browse the repository at this point in the history
  • Loading branch information
izendegi committed Jul 18, 2022
1 parent d9632ca commit 919ea1d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion admin/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ public function environment_check_table($result, $environment_results) {
$errorline = true;
} else {
if ($status) { //Handle ok result (ok)
$status = get_string('ok');
$status = get_string('statusok');
} else {
if ($environment_result->getLevel() == 'optional') {//Handle check result (warning)
$status = get_string('check');
Expand Down
2 changes: 1 addition & 1 deletion backup/util/helper/backup_cron_helper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private static function send_backup_status_to_admin($admin) {
$message .= get_string('summary') . "\n";
$message .= "==================================================\n";
$message .= ' ' . get_string('courses') . ': ' . array_sum($count) . "\n";
$message .= ' ' . get_string('ok') . ': ' . $count[self::BACKUP_STATUS_OK] . "\n";
$message .= ' ' . get_string('statusok') . ': ' . $count[self::BACKUP_STATUS_OK] . "\n";
$message .= ' ' . get_string('skipped') . ': ' . $count[self::BACKUP_STATUS_SKIPPED] . "\n";
$message .= ' ' . get_string('error') . ': ' . $count[self::BACKUP_STATUS_ERROR] . "\n";
$message .= ' ' . get_string('unfinished') . ': ' . $count[self::BACKUP_STATUS_UNFINISHED] . "\n";
Expand Down
2 changes: 1 addition & 1 deletion course/reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
$line = array();
$line[] = $item['component'];
$line[] = $item['item'];
$line[] = ($item['error']===false) ? get_string('ok') : '<div class="notifyproblem">'.$item['error'].'</div>';
$line[] = ($item['error'] === false) ? get_string('statusok') : '<div class="notifyproblem">'.$item['error'].'</div>';
$data[] = $line;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/classes/plugin_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ public function install_plugins(array $plugins, $confirmed, $silent) {
return false;
}

$ok = get_string('ok', 'core');
$ok = get_string('statusok', 'core');

// Let admins know they can expect more verbose output.
$silent or $this->mtrace(get_string('packagesdebug', 'core_plugin'), PHP_EOL, DEBUG_NORMAL);
Expand Down
2 changes: 1 addition & 1 deletion report/backups/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

$strftimedatetime = get_string('strftimerecent');
$strerror = get_string('error');
$strok = get_string('ok');
$strok = get_string('statusok');
$strunfinished = get_string('unfinished');
$strskipped = get_string('skipped');
$strwarning = get_string('warning');
Expand Down

0 comments on commit 919ea1d

Please sign in to comment.