From 1f6b0360de7d77ec81241aebfb3473bb2a41653d Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Sun, 10 Nov 2024 11:58:04 +0100 Subject: [PATCH] Collection of localization issues (2) (#22758) * Clarify delay action * Change order * Add translations for "line" and "bar" --- src/data/logbook.ts | 2 +- .../hui-statistics-graph-card-editor.ts | 14 ++++++++++++-- src/translations/en.json | 6 +++++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/data/logbook.ts b/src/data/logbook.ts index 712680ae90..f9445a534f 100644 --- a/src/data/logbook.ts +++ b/src/data/logbook.ts @@ -63,8 +63,8 @@ const triggerPhrases: Record = { triggered_by_numeric_state_of: "numeric state of", // number state trigger triggered_by_state_of: "state of", // state trigger triggered_by_event: "event", // event trigger - triggered_by_time: "time", // time trigger triggered_by_time_pattern: "time pattern", // time trigger + triggered_by_time: "time", // time trigger triggered_by_homeassistant_stopping: "Home Assistant stopping", // stop event triggered_by_homeassistant_starting: "Home Assistant starting", // start event }; diff --git a/src/panels/lovelace/editor/config-elements/hui-statistics-graph-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-statistics-graph-card-editor.ts index 87cb9e42bf..0b57becd83 100644 --- a/src/panels/lovelace/editor/config-elements/hui-statistics-graph-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-statistics-graph-card-editor.ts @@ -199,8 +199,18 @@ export class HuiStatisticsGraphCardEditor required: true, type: "select", options: [ - ["line", "Line"], - ["bar", "Bar"], + [ + "line", + localize( + `ui.panel.lovelace.editor.card.statistics-graph.chart_type_labels.line` + ), + ], + [ + "bar", + localize( + `ui.panel.lovelace.editor.card.statistics-graph.chart_type_labels.bar` + ), + ], ], }, { diff --git a/src/translations/en.json b/src/translations/en.json index 70e23cff03..5d9f12aaae 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -3367,7 +3367,7 @@ "label": "Wait for time to pass (delay)", "delay": "Duration", "description": { - "picker": "Wait some time to perform a sequence of actions.", + "picker": "Wait some time before continuing the sequence of actions.", "full": "Delay {duration}", "duration_string": "for {string}", "duration_template": "based on a template", @@ -6044,6 +6044,10 @@ "change": "Change" }, "chart_type": "Chart type", + "chart_type_labels": { + "line": "Line", + "bar": "Bar" + }, "periods": { "hour": "Hour", "day": "Day",