From 32a9b13af0a4f5b62ee87489976f117277c943a2 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Wed, 28 Jun 2023 14:38:10 +0200 Subject: [PATCH] Translate message that script/automation is unavailable (#17066) --- src/panels/config/automation/ha-automation-editor.ts | 4 +++- src/panels/config/script/ha-script-editor.ts | 4 +++- src/translations/en.json | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/panels/config/automation/ha-automation-editor.ts b/src/panels/config/automation/ha-automation-editor.ts index 9238852502..4dba153f71 100644 --- a/src/panels/config/automation/ha-automation-editor.ts +++ b/src/panels/config/automation/ha-automation-editor.ts @@ -301,7 +301,9 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) { ? html` ${this._errors || this._validationErrors} diff --git a/src/panels/config/script/ha-script-editor.ts b/src/panels/config/script/ha-script-editor.ts index a64a53b9fa..177a5ac8a3 100644 --- a/src/panels/config/script/ha-script-editor.ts +++ b/src/panels/config/script/ha-script-editor.ts @@ -315,7 +315,9 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) { ${this._errors || this._validationErrors} diff --git a/src/translations/en.json b/src/translations/en.json index d6f4567648..371c4c706f 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2206,6 +2206,7 @@ "disable": "[%key:ui::common::disable%]", "disabled": "Automation is disabled", "read_only": "This automation cannot be edited from the UI, because it is not stored in the automations.yaml file, or doesn't have an ID.", + "unavailable": "Automation is unavailable", "migrate": "Migrate", "duplicate": "[%key:ui::common::duplicate%]", "run": "[%key:ui::panel::config::automation::editor::actions::run%]", @@ -2790,6 +2791,7 @@ "show_trace": "[%key:ui::panel::config::automation::editor::show_trace%]", "show_info": "[%key:ui::panel::config::automation::editor::show_info%]", "read_only": "This script cannot be edited from the UI, because it is not stored in the ''scripts.yaml'' file.", + "unavailable": "Script is unavailable", "migrate": "Migrate", "duplicate": "[%key:ui::common::duplicate%]", "header": "Script: {name}",