Skip to content
Snippets Groups Projects
Verified Commit 70467783 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix i18n of health check errors

parent 48e9fe85
Branches 616-docs-document-dashboard-and-dashboard-widgets
No related tags found
1 merge request!920Resolve "Status page throws internal server error if backup directory not found"
Pipeline #50638 passed
......@@ -47,7 +47,7 @@ class BaseBackupHealthCheck(BaseHealthCheckBackend):
# Check if backup is older than configured time
if time_gone_since_backup.seconds > self.configured_seconds:
self.add_error(_(f"Last backup {time_gone_since_backup}!"))
self.add_error(_("Last backup {}!").format(time_gone_since_backup))
else:
self.add_error(_("No backup found!"))
......@@ -78,4 +78,4 @@ class BackupJobHealthCheck(BaseHealthCheckBackend):
if not task:
self.add_error(_("No backup result found!"))
elif task and task.status != "SUCCESS":
self.add_error(_(f"{task.status} - {task.result}"))
self.add_error(f"{task.status} - {task.result}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment