Climate fan and swing settings in Home Assistant's words
The climate card's fan and swing rows showed the raw mode names (Auto, Low, Medium, High) in every language. Home Assistant names the common ones itself (Laag, Mittel, Élevée): ha-words now copies those into screen.ha, and the card looks a mode up there; an integration's own mode still reads as its name. ha-words also says how many words it really changed. Found in the second test pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+17
-2
@@ -3,7 +3,7 @@
|
||||
#pragma once
|
||||
#include "components/smart_display/screen_text.h"
|
||||
|
||||
static_assert(screen_text::KEYS_HASH == 0x5DBB4605u && screen_text::KEY_COUNT == 306,
|
||||
static_assert(screen_text::KEYS_HASH == 0x8FB53847u && screen_text::KEY_COUNT == 321,
|
||||
"screen_text_keys.h does not match screen_manager/translations/en.json: run tools/i18n.py header");
|
||||
const char *const screen_text::TABLE[] = {
|
||||
".",
|
||||
@@ -311,7 +311,22 @@ const char *const screen_text::TABLE[] = {
|
||||
"Closed",
|
||||
"Activate",
|
||||
"Run",
|
||||
"Press"
|
||||
"Press",
|
||||
"Auto",
|
||||
"Low",
|
||||
"Medium",
|
||||
"High",
|
||||
"Middle",
|
||||
"Focus",
|
||||
"Diffuse",
|
||||
"Top",
|
||||
"On",
|
||||
"Off",
|
||||
"On",
|
||||
"Off",
|
||||
"Both",
|
||||
"Vertical",
|
||||
"Horizontal"
|
||||
};
|
||||
const char *const screen_text::LANGUAGE = "en";
|
||||
int screen_text::plural_index(int n) { return n == 1 ? 0 : 1; }
|
||||
|
||||
Reference in New Issue
Block a user