From f53eea81c493377968f2a5383830165c4d3c1d21 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Fri, 1 Nov 2019 16:12:49 +0100 Subject: [PATCH] Translated a bunch of strings (#4137) * Translated customization page - added translation key-value pairs to en.json - translated form-customize, customize-icon and its key-value * Translated mutliple pages: - devices - entity-registry - config-entry - dashboard -> hint to advanced mode toggle * Translated custom panel confirm message * Added translation for no entries in logbook * Updated translation keys, tested and removed ha-types file translations * Removed setting an if to true for testing * Use template literal instead of string concatenation --- .../config/customize/ha-form-customize.js | 25 +++++----- .../config/dashboard/ha-config-dashboard.js | 4 +- .../config/devices/ha-config-device-page.ts | 24 +++++++--- .../config/devices/ha-devices-data-table.ts | 24 +++++++--- .../dialog-entity-registry-detail.ts | 4 +- .../config-entry/ha-config-entry-page.ts | 6 ++- src/panels/custom/ha-panel-custom.ts | 20 ++++++-- src/panels/logbook/ha-logbook.js | 5 +- src/translations/en.json | 46 +++++++++++++++++-- 9 files changed, 119 insertions(+), 39 deletions(-) diff --git a/src/panels/config/customize/ha-form-customize.js b/src/panels/config/customize/ha-form-customize.js index 7b1bca7a49..c83cbfb152 100644 --- a/src/panels/config/customize/ha-form-customize.js +++ b/src/panels/config/customize/ha-form-customize.js @@ -3,13 +3,14 @@ import "@polymer/paper-item/paper-item"; import "@polymer/paper-listbox/paper-listbox"; import { html } from "@polymer/polymer/lib/utils/html-tag"; import { PolymerElement } from "@polymer/polymer/polymer-element"; +import LocalizeMixin from "../../../mixins/localize-mixin"; import hassAttributeUtil from "../../../util/hass-attributes-util"; import "./ha-form-customize-attributes"; import { computeStateDomain } from "../../../common/entity/compute_state_domain"; -class HaFormCustomize extends PolymerElement { +class HaFormCustomize extends LocalizeMixin(PolymerElement) { static get template() { return html` @@ -55,7 +56,7 @@ class HaLogbook extends EventsMixin(PolymerElement) {