Translate message that script/automation is unavailable (#17066)

This commit is contained in:
Philip Allgaier 2023-06-28 14:38:10 +02:00 committed by GitHub
parent c90c4d88af
commit 32a9b13af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -301,7 +301,9 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
? html`<ha-alert ? html`<ha-alert
alert-type="error" alert-type="error"
.title=${stateObj?.state === UNAVAILABLE .title=${stateObj?.state === UNAVAILABLE
? "Automation unavailable" ? this.hass.localize(
"ui.panel.config.automation.editor.unavailable"
)
: undefined} : undefined}
> >
${this._errors || this._validationErrors} ${this._errors || this._validationErrors}

View File

@ -315,7 +315,9 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
<ha-alert <ha-alert
alert-type="error" alert-type="error"
.title=${stateObj?.state === UNAVAILABLE .title=${stateObj?.state === UNAVAILABLE
? "Script unavailable" ? this.hass.localize(
"ui.panel.config.script.editor.unavailable"
)
: undefined} : undefined}
> >
${this._errors || this._validationErrors} ${this._errors || this._validationErrors}

View File

@ -2206,6 +2206,7 @@
"disable": "[%key:ui::common::disable%]", "disable": "[%key:ui::common::disable%]",
"disabled": "Automation is disabled", "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.", "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", "migrate": "Migrate",
"duplicate": "[%key:ui::common::duplicate%]", "duplicate": "[%key:ui::common::duplicate%]",
"run": "[%key:ui::panel::config::automation::editor::actions::run%]", "run": "[%key:ui::panel::config::automation::editor::actions::run%]",
@ -2790,6 +2791,7 @@
"show_trace": "[%key:ui::panel::config::automation::editor::show_trace%]", "show_trace": "[%key:ui::panel::config::automation::editor::show_trace%]",
"show_info": "[%key:ui::panel::config::automation::editor::show_info%]", "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.", "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", "migrate": "Migrate",
"duplicate": "[%key:ui::common::duplicate%]", "duplicate": "[%key:ui::common::duplicate%]",
"header": "Script: {name}", "header": "Script: {name}",