From 59e4cdc62a834f817a2a1f353ce1bfd41aa4a18a Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Mon, 14 Oct 2019 21:28:44 +0200 Subject: [PATCH] Added integration name to System Options dialog (#3996) * Added integration name to System Options dialog * Passed integration name into translation string * Translated integration name * Added option for no translation --- .../dialog-config-entry-system-options.ts | 16 ++++++++++++++-- src/translations/en.json | 4 ++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/dialogs/config-entry-system-options/dialog-config-entry-system-options.ts b/src/dialogs/config-entry-system-options/dialog-config-entry-system-options.ts index 1064d41b36..2950d4c61a 100644 --- a/src/dialogs/config-entry-system-options/dialog-config-entry-system-options.ts +++ b/src/dialogs/config-entry-system-options/dialog-config-entry-system-options.ts @@ -60,7 +60,13 @@ class DialogConfigEntrySystemOptions extends LitElement { @opened-changed="${this._openedChanged}" >
${this.hass.localize( - "ui.dialogs.config_entry_system_options.enable_new_entities_description" + "ui.dialogs.config_entry_system_options.enable_new_entities_description", + "integration", + this.hass.localize( + `component.${ + this._params.entry.domain + }.config.title` + ) || this._params.entry.domain )}
diff --git a/src/translations/en.json b/src/translations/en.json index a7f99e6645..aecc059a9f 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -559,9 +559,9 @@ } }, "config_entry_system_options": { - "title": "System Options", + "title": "System Options for {integration}", "enable_new_entities_label": "Enable newly added entities.", - "enable_new_entities_description": "If disabled, newly discovered entities will not be automatically added to Home Assistant." + "enable_new_entities_description": "If disabled, newly discovered entities for {integration} will not be automatically added to Home Assistant." }, "zha_device_info": { "manuf": "by {manufacturer}",