From 4b1a4485cd70e13cf5120f29e9704d833f031d48 Mon Sep 17 00:00:00 2001 From: iotux Date: Thu, 18 Dec 2025 10:08:30 +0100 Subject: [PATCH] Updated i18n and template to be OS sensitive --- src/lang/en.json | 8 +++++--- src/pages/EditMonitor.vue | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/lang/en.json b/src/lang/en.json index 17c9e28e..ce419ad9 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -1024,17 +1024,19 @@ "useRemoteBrowser": "Use a Remote Browser", "deleteRemoteBrowserMessage": "Are you sure want to delete this Remote Browser for all monitors?", "GrafanaOncallUrl": "Grafana Oncall URL", - "System Service": "System Service", - "Service Name": "Service Name", + "systemService": "System Service", + "systemServiceName": "Service Name", "systemServiceDescription": "Checks if system service", "systemServiceDescriptionLinux": "Checks if Linux systemd service", "systemServiceDescriptionWindows": "Checks if Windows Service Manager", "systemServiceActiveText": "is active.", "systemServiceLinuxLabel": "Show Linux Debug Command", "systemServiceWindowsLabel": "Show Windows Debug Command", + "systemServiceExpectedOutput": "Expected Output", + "systemServiceActiveTextLinux": "active", + "systemServiceActiveTextWindows": "Running", "Browser Screenshot": "Browser Screenshot", "Command": "Command", - "Expected Output": "Expected Output", "mongodbCommandDescription": "Run a MongoDB command against the database. For information about the available commands check out the {documentation}", "wayToGetSevenIOApiKey": "Visit the dashboard under app.seven.io > developer > api key > the green add button", "senderSevenIO": "Sending number or name", diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 884e7e4c..e5e37e55 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -693,7 +693,7 @@
systemctl is-active {{ monitor.system_service_name || 'nginx' }} -
ExpectedOutput: 'active'
+
{{ "systemServiceExpectedOutput" }}: {{ systemServiceActiveTextLinux }}
@@ -709,7 +709,7 @@
(Get-Service -Name "{{ monitor.system_service_name || 'nginx' }}").Status -
ExpectedOutput: 'Running'
+
{{ "systemServiceExpectedOutput" }}: {{ systemServiceActiveTextWindows }}