From 919ea1dde192a4db589dbc0da25a21e17c21b058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Zendegi?= Date: Thu, 9 Jun 2022 16:02:55 +0200 Subject: [PATCH] MDL-74857 language: Start using the 'statusok' string for status --- admin/renderer.php | 2 +- backup/util/helper/backup_cron_helper.class.php | 2 +- course/reset.php | 2 +- lib/classes/plugin_manager.php | 2 +- report/backups/index.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/renderer.php b/admin/renderer.php index 57d4f98c76f..0c66010ed73 100644 --- a/admin/renderer.php +++ b/admin/renderer.php @@ -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'); diff --git a/backup/util/helper/backup_cron_helper.class.php b/backup/util/helper/backup_cron_helper.class.php index f21631d182e..ff7610398b9 100644 --- a/backup/util/helper/backup_cron_helper.class.php +++ b/backup/util/helper/backup_cron_helper.class.php @@ -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"; diff --git a/course/reset.php b/course/reset.php index 412fe2b2f88..dba445de3b1 100644 --- a/course/reset.php +++ b/course/reset.php @@ -79,7 +79,7 @@ if ($mform->is_cancelled()) { $line = array(); $line[] = $item['component']; $line[] = $item['item']; - $line[] = ($item['error']===false) ? get_string('ok') : '
'.$item['error'].'
'; + $line[] = ($item['error'] === false) ? get_string('statusok') : '
'.$item['error'].'
'; $data[] = $line; } diff --git a/lib/classes/plugin_manager.php b/lib/classes/plugin_manager.php index 8b75ead7947..30731d6f18a 100644 --- a/lib/classes/plugin_manager.php +++ b/lib/classes/plugin_manager.php @@ -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); diff --git a/report/backups/index.php b/report/backups/index.php index 22b128859a8..ffd2145f80e 100644 --- a/report/backups/index.php +++ b/report/backups/index.php @@ -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');