From a696d849b2e748e4f4026c8ee3f71a70a9e25db2 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Wed, 6 Oct 2021 10:38:44 +0200 Subject: [PATCH] Add missing translations to statistics fixing (#10159) --- .../statistics/developer-tools-statistics.ts | 6 ++++-- .../statistics/dialog-statistics-fix-units-changed.ts | 2 +- src/translations/en.json | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/panels/developer-tools/statistics/developer-tools-statistics.ts b/src/panels/developer-tools/statistics/developer-tools-statistics.ts index f0d9c13504..66fbd5354b 100644 --- a/src/panels/developer-tools/statistics/developer-tools-statistics.ts +++ b/src/panels/developer-tools/statistics/developer-tools-statistics.ts @@ -81,14 +81,16 @@ class HaPanelDevStatistics extends LitElement { issue.data ) || issue.type ) - : "No issues"}`, + : localize("ui.panel.developer-tools.tabs.statistics.no_issue")}`, }, fix: { title: "", template: (_, data: any) => html`${data.issues ? html` - Fix issue + ${localize( + "ui.panel.developer-tools.tabs.statistics.fix_issue.fix" + )} ` : ""}`, width: "113px", diff --git a/src/panels/developer-tools/statistics/dialog-statistics-fix-units-changed.ts b/src/panels/developer-tools/statistics/dialog-statistics-fix-units-changed.ts index 671fc81177..5338213dfd 100644 --- a/src/panels/developer-tools/statistics/dialog-statistics-fix-units-changed.ts +++ b/src/panels/developer-tools/statistics/dialog-statistics-fix-units-changed.ts @@ -82,7 +82,7 @@ export class DialogStatisticsFixUnitsChanged extends LitElement { ${this.hass.localize( - "ui.panel.developer-tools.tabs.statistics.fix_issue.units_changed.fix" + "ui.panel.developer-tools.tabs.statistics.fix_issue.fix" )} diff --git a/src/translations/en.json b/src/translations/en.json index 75098c53d8..1ee18be54a 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -3730,6 +3730,7 @@ "title": "Statistics", "entity": "Entity", "issue": "Issue", + "no_issue": "No issue", "issues": { "units_changed": "The unit of this entity changed from ''{metadata_unit}'' to ''{state_unit}''.", "unsupported_unit_state": "The unit (''{state_unit}'') of this entity doesn't match a unit of device class ''{device_class}''.", @@ -3738,11 +3739,11 @@ "entity_not_recorded": "This entity is excluded from being recorded." }, "fix_issue": { + "fix": "Fix issue", "units_changed": { "title": "The unit of this entity changed", "update": "Update the historic statistic values from ''{metadata_unit}'' to ''{state_unit}''", - "clear": "Delete all old statistic data for this entity", - "fix": "Fix issue" + "clear": "Delete all old statistic data for this entity" } } }