MDL-74857 language: Start using the 'statusok' string for status

This commit is contained in:
Iñigo Zendegi
2022-07-18 10:55:47 +02:00
parent d9632ca8b2
commit 919ea1dde1
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -2080,7 +2080,7 @@ class core_admin_renderer extends plugin_renderer_base {
$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');
@@ -202,7 +202,7 @@ abstract class backup_cron_automated_helper {
$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";
+1 -1
View File
@@ -79,7 +79,7 @@ if ($mform->is_cancelled()) {
$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;
}
+1 -1
View File
@@ -1320,7 +1320,7 @@ class core_plugin_manager {
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);
+1 -1
View File
@@ -40,7 +40,7 @@ admin_externalpage_setup('reportbackups', '', null, '', array('pagelayout'=>'rep
$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');