From 8649c5352bea010cca30cf1ac8e9726df4311d9c Mon Sep 17 00:00:00 2001 From: Adam Mills Date: Sun, 21 Jan 2018 01:08:22 -0500 Subject: [PATCH] Core config translations (#821) * Config dashboard translations * Simplify config pages * Core/Core/Validation * Core/Core/Reloading * Core/Core/Server_Management * Core/Push_Notifications * Core/Translation * Core/Themes * Initial hassbian config translations * Switch to sentence cases --- gulp/tasks/translations.js | 1 + .../automation/ha-automation-picker.html | 9 +- .../automation/ha-config-automation.html | 1 + panels/config/core/ha-config-core.html | 8 +- .../config/core/ha-config-section-core.html | 87 ++++++++------ .../core/ha-config-section-hassbian.html | 18 ++- .../ha-config-section-push-notifications.html | 11 +- .../config/core/ha-config-section-themes.html | 13 ++- .../core/ha-config-section-translation.html | 6 +- .../config/customize/ha-config-customize.html | 8 +- .../config/dashboard/ha-config-dashboard.html | 15 ++- .../dashboard/ha-config-navigation.html | 109 ++++++++---------- panels/config/script/ha-config-script.html | 1 + panels/config/script/ha-script-picker.html | 9 +- panels/config/zwave/ha-config-zwave.html | 8 +- src/translations/en.json | 72 ++++++++++++ 16 files changed, 247 insertions(+), 129 deletions(-) diff --git a/gulp/tasks/translations.js b/gulp/tasks/translations.js index 1f7aa56aed..5c09e80f7a 100755 --- a/gulp/tasks/translations.js +++ b/gulp/tasks/translations.js @@ -18,6 +18,7 @@ const outDir = workDir + '/output'; // should mirror the fragment definitions in polymer.json, so that we load // additional resources at equivalent points. const TRANSLATION_FRAGMENTS = [ + 'config', 'history', 'logbook', 'mailbox', diff --git a/panels/config/automation/ha-automation-picker.html b/panels/config/automation/ha-automation-picker.html index 9f123dc537..7ef299e018 100644 --- a/panels/config/automation/ha-automation-picker.html +++ b/panels/config/automation/ha-automation-picker.html @@ -51,7 +51,7 @@ icon='mdi:arrow-left' on-tap='_backTapped' > -
Automations
+
[[localize('ui.panel.config.automation.caption')]]
@@ -94,7 +94,12 @@ diff --git a/panels/config/script/ha-config-script.html b/panels/config/script/ha-config-script.html index 86b6ca1d85..3236c742dd 100644 --- a/panels/config/script/ha-config-script.html +++ b/panels/config/script/ha-config-script.html @@ -26,6 +26,7 @@