Align wording in automation and script editor overflow menus (#13575)

This commit is contained in:
Philip Allgaier 2022-09-03 19:22:42 +02:00 committed by GitHub
parent 43f9c9ebc9
commit 81cc745c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 22 deletions

View File

@ -192,7 +192,6 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
"ui.panel.config.automation.editor.edit_ui" "ui.panel.config.automation.editor.edit_ui"
)} )}
graphic="icon" graphic="icon"
?activated=${this._mode === "gui"}
> >
${this.hass.localize("ui.panel.config.automation.editor.edit_ui")} ${this.hass.localize("ui.panel.config.automation.editor.edit_ui")}
${this._mode === "gui" ${this._mode === "gui"
@ -228,13 +227,11 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
<mwc-list-item <mwc-list-item
.disabled=${!this.scriptEntityId} .disabled=${!this.scriptEntityId}
.label=${this.hass.localize( .label=${this.hass.localize(
"ui.panel.config.script.picker.duplicate_script" "ui.panel.config.script.picker.duplicate"
)} )}
graphic="icon" graphic="icon"
> >
${this.hass.localize( ${this.hass.localize("ui.panel.config.script.picker.duplicate")}
"ui.panel.config.script.picker.duplicate_script"
)}
<ha-svg-icon <ha-svg-icon
slot="graphic" slot="graphic"
.path=${mdiContentDuplicate} .path=${mdiContentDuplicate}
@ -244,12 +241,12 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
<mwc-list-item <mwc-list-item
.disabled=${!this.scriptEntityId} .disabled=${!this.scriptEntityId}
aria-label=${this.hass.localize( aria-label=${this.hass.localize(
"ui.panel.config.script.editor.delete_script" "ui.panel.config.script.picker.delete"
)} )}
class=${classMap({ warning: Boolean(this.scriptEntityId) })} class=${classMap({ warning: Boolean(this.scriptEntityId) })}
graphic="icon" graphic="icon"
> >
${this.hass.localize("ui.panel.config.script.editor.delete_script")} ${this.hass.localize("ui.panel.config.script.picker.delete")}
<ha-svg-icon <ha-svg-icon
class=${classMap({ warning: Boolean(this.scriptEntityId) })} class=${classMap({ warning: Boolean(this.scriptEntityId) })}
slot="graphic" slot="graphic"

View File

@ -301,6 +301,7 @@
"refresh": "Refresh", "refresh": "Refresh",
"cancel": "Cancel", "cancel": "Cancel",
"delete": "Delete", "delete": "Delete",
"duplicate": "Duplicate",
"remove": "Remove", "remove": "Remove",
"enable": "Enable", "enable": "Enable",
"disable": "Disable", "disable": "Disable",
@ -1790,9 +1791,9 @@
"edit_automation": "Edit automation", "edit_automation": "Edit automation",
"dev_automation": "Debug automation", "dev_automation": "Debug automation",
"show_info_automation": "Show info about automation", "show_info_automation": "Show info about automation",
"delete": "Delete", "delete": "[%key:ui::common::delete%]",
"delete_confirm": "Are you sure you want to delete this automation?", "delete_confirm": "Are you sure you want to delete this automation?",
"duplicate": "Duplicate", "duplicate": "[%key:ui::common::duplicate%]",
"disabled": "Disabled", "disabled": "Disabled",
"headers": { "headers": {
"toggle": "Enable/disable", "toggle": "Enable/disable",
@ -1869,11 +1870,11 @@
"add": "Add trigger", "add": "Add trigger",
"id": "Trigger ID", "id": "Trigger ID",
"edit_id": "Edit ID", "edit_id": "Edit ID",
"duplicate": "Duplicate", "duplicate": "[%key:ui::common::duplicate%]",
"rename": "Rename", "rename": "Rename",
"change_alias": "Rename trigger", "change_alias": "Rename trigger",
"alias": "Trigger name", "alias": "Trigger name",
"delete": "[%key:ui::panel::mailbox::delete_button%]", "delete": "[%key:ui::common::delete%]",
"delete_confirm": "Are you sure you want to delete this?", "delete_confirm": "Are you sure you want to delete this?",
"unsupported_platform": "No visual editor support for platform: {platform}", "unsupported_platform": "No visual editor support for platform: {platform}",
"type_select": "Trigger type", "type_select": "Trigger type",
@ -1989,11 +1990,11 @@
"testing_pass": "Condition passes", "testing_pass": "Condition passes",
"invalid_condition": "Invalid condition configuration", "invalid_condition": "Invalid condition configuration",
"test_failed": "Error occurred while testing condition", "test_failed": "Error occurred while testing condition",
"duplicate": "[%key:ui::panel::config::automation::editor::triggers::duplicate%]", "duplicate": "[%key:ui::common::duplicate%]",
"rename": "[%key:ui::panel::config::automation::editor::triggers::rename%]", "rename": "[%key:ui::panel::config::automation::editor::triggers::rename%]",
"change_alias": "Rename condition", "change_alias": "Rename condition",
"alias": "Condition name", "alias": "Condition name",
"delete": "[%key:ui::panel::mailbox::delete_button%]", "delete": "[%key:ui::common::delete%]",
"delete_confirm": "[%key:ui::panel::config::automation::editor::triggers::delete_confirm%]", "delete_confirm": "[%key:ui::panel::config::automation::editor::triggers::delete_confirm%]",
"unsupported_condition": "No visual editor support for condition: {condition}", "unsupported_condition": "No visual editor support for condition: {condition}",
"type_select": "Condition type", "type_select": "Condition type",
@ -2080,14 +2081,14 @@
"run": "Run", "run": "Run",
"run_action_error": "Error running action", "run_action_error": "Error running action",
"run_action_success": "Action run successfully", "run_action_success": "Action run successfully",
"duplicate": "[%key:ui::panel::config::automation::editor::triggers::duplicate%]", "duplicate": "[%key:ui::common::duplicate%]",
"rename": "[%key:ui::panel::config::automation::editor::triggers::rename%]", "rename": "[%key:ui::panel::config::automation::editor::triggers::rename%]",
"change_alias": "Rename action", "change_alias": "Rename action",
"alias": "Action name", "alias": "Action name",
"enable": "Enable", "enable": "Enable",
"disable": "Disable", "disable": "Disable",
"disabled": "Disabled", "disabled": "Disabled",
"delete": "[%key:ui::panel::mailbox::delete_button%]", "delete": "[%key:ui::common::delete%]",
"delete_confirm": "[%key:ui::panel::config::automation::editor::triggers::delete_confirm%]", "delete_confirm": "[%key:ui::panel::config::automation::editor::triggers::delete_confirm%]",
"unsupported_action": "No visual editor support for action: {action}", "unsupported_action": "No visual editor support for action: {action}",
"type_select": "Action type", "type_select": "Action type",
@ -2260,7 +2261,7 @@
"header": "Script Editor", "header": "Script Editor",
"introduction": "The script editor allows you to create and edit scripts. Please follow the link below to read the instructions to make sure that you have configured Home Assistant correctly.", "introduction": "The script editor allows you to create and edit scripts. Please follow the link below to read the instructions to make sure that you have configured Home Assistant correctly.",
"learn_more": "Learn more about scripts", "learn_more": "Learn more about scripts",
"no_scripts": "We couldnt find any scripts", "no_scripts": "We couldn't find any scripts",
"add_script": "Add script", "add_script": "Add script",
"show_info": "Show info about script", "show_info": "Show info about script",
"run_script": "Run script", "run_script": "Run script",
@ -2270,8 +2271,8 @@
"name": "Name", "name": "Name",
"state": "State" "state": "State"
}, },
"duplicate_script": "Duplicate script", "delete": "[%key:ui::common::delete%]",
"duplicate": "[%key:ui::panel::config::automation::picker::duplicate%]" "duplicate": "[%key:ui::common::duplicate%]"
}, },
"editor": { "editor": {
"alias": "Name", "alias": "Name",
@ -2298,7 +2299,6 @@
"load_error_not_editable": "Only scripts inside scripts.yaml are editable.", "load_error_not_editable": "Only scripts inside scripts.yaml are editable.",
"load_error_unknown": "Error loading script ({err_no}).", "load_error_unknown": "Error loading script ({err_no}).",
"delete_confirm": "Are you sure you want to delete this script?", "delete_confirm": "Are you sure you want to delete this script?",
"delete_script": "Delete script",
"save_script": "Save script", "save_script": "Save script",
"sequence": "Sequence", "sequence": "Sequence",
"sequence_sentence": "The sequence of actions of this script.", "sequence_sentence": "The sequence of actions of this script.",
@ -2314,7 +2314,7 @@
"introduction": "The scene editor allows you to create and edit scenes. Please follow the link below to read the instructions to make sure that you have configured Home Assistant correctly.", "introduction": "The scene editor allows you to create and edit scenes. Please follow the link below to read the instructions to make sure that you have configured Home Assistant correctly.",
"learn_more": "Learn more about scenes", "learn_more": "Learn more about scenes",
"pick_scene": "Pick scene to edit", "pick_scene": "Pick scene to edit",
"no_scenes": "We couldnt find any scenes", "no_scenes": "We couldn't find any scenes",
"add_scene": "Add scene", "add_scene": "Add scene",
"only_editable": "Only scenes defined in scenes.yaml are editable.", "only_editable": "Only scenes defined in scenes.yaml are editable.",
"edit_scene": "Edit scene", "edit_scene": "Edit scene",
@ -2322,7 +2322,7 @@
"delete_scene": "Delete scene", "delete_scene": "Delete scene",
"delete_confirm": "Are you sure you want to delete this scene?", "delete_confirm": "Are you sure you want to delete this scene?",
"duplicate_scene": "Duplicate scene", "duplicate_scene": "Duplicate scene",
"duplicate": "Duplicate", "duplicate": "[%key:ui::common::duplicate%]",
"headers": { "headers": {
"activate": "Activate", "activate": "Activate",
"state": "State", "state": "State",
@ -3855,7 +3855,7 @@
}, },
"entity": { "entity": {
"name": "Entity", "name": "Entity",
"description": "The Entity card gives you a quick overview of your entitys state." "description": "The Entity card gives you a quick overview of your entity's state."
}, },
"button": { "button": {
"name": "Button", "name": "Button",