small gettext adjustments

This commit is contained in:
HB9HIL
2024-08-21 21:50:46 +02:00
parent 4e06b91a2a
commit defce21e81
2 changed files with 4 additions and 4 deletions

View File

@@ -262,10 +262,10 @@ class cron extends CI_Controller {
$result['status_class'] = 'success';
} else {
if ($diff <= $error_timelimit_seconds) {
$result['status'] = sprintf(__("Last run occurred more than %s seconds ago.<br>Please check your master cron! It should run every minute (* * * * *)."), $warning_timelimit_seconds);
$result['status'] = sprintf(__("Last run occurred more than %s seconds ago.%sPlease check your master cron! It should run every minute (* * * * *)."), $warning_timelimit_seconds, '<br>');
$result['status_class'] = 'warning';
} else {
$result['status'] = sprintf(__("Last run occurred more than %s minutes ago.<br>Seems like your Mastercron isn't running!<br>It should run every minute (* * * * *)."), ($error_timelimit_seconds / 60));
$result['status'] = sprintf(__("Last run occurred more than %s minutes ago.%sSeems like your Mastercron isn't running!%sIt should run every minute (* * * * *)."), ($error_timelimit_seconds / 60), '<br>', '<br>');
$result['status_class'] = 'danger';
}
}

View File

@@ -26,11 +26,11 @@
<div class="col text-end" id="alert_status">
<?php if (version_compare(PHP_VERSION, $min_php_version) >= 0) { ?>
<div class="alert alert-<?php echo $mastercron['status_class'] ?? 'danger'; ?> d-inline-block">
<?= __("Status Master-Cron"); ?>: <?php echo $mastercron['status'] ?? _pgettext("Master Cron", "Not running"); ?>
<?= __("Status Master-Cron:"); ?><br><?php echo $mastercron['status'] ?? _pgettext("Master Cron", "Not running"); ?>
</div>
<?php } else { ?>
<div class="alert alert-danger d-inline-block">
<?= __("Status Master-Cron"); ?>:<br><?= __("PHP Version not supported."); ?><br><?= _pgettext("PHP Version", "Min. Version is"); ?> <?php echo $min_php_version; ?>
<?= __("Status Master-Cron:"); ?><br><?= __("PHP Version not supported."); ?><br><?= _pgettext("PHP Version", "Min. Version is"); ?> <?php echo $min_php_version; ?>
</div>
<?php } ?>
</div>