Add Dutch, German, French, Italian, Spanish, Portuguese and Polish with their calendars and Home Assistant's own words
tools/i18n.py gets cldr (day and month names, date orders, numbers and the clock from Node's Intl), ha-words (the words for states from Home Assistant's own translations, English included) and lint (English left in the firmware's code). The screens write numbers from Home Assistant in the chosen format, and every text font carries the apostrophe. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+29
-26
@@ -3,11 +3,12 @@
|
||||
#pragma once
|
||||
#include "components/smart_display/screen_text.h"
|
||||
|
||||
static_assert(screen_text::KEYS_HASH == 0x725A92EEu && screen_text::KEY_COUNT == 302,
|
||||
static_assert(screen_text::KEYS_HASH == 0x8971C0EBu && screen_text::KEY_COUNT == 305,
|
||||
"screen_text_keys.h does not match screen_manager/translations/en.json: run tools/i18n.py header");
|
||||
const char *const screen_text::TABLE[] = {
|
||||
".",
|
||||
",",
|
||||
"1",
|
||||
"Just now",
|
||||
"{n} min ago",
|
||||
"1 hour ago | {n} hours ago",
|
||||
@@ -108,6 +109,8 @@ const char *const screen_text::TABLE[] = {
|
||||
"Firmware",
|
||||
"Home Assistant",
|
||||
"Restart",
|
||||
"Connected",
|
||||
"Not connected",
|
||||
"Tap again to restart",
|
||||
"{n} sec",
|
||||
"{n} min",
|
||||
@@ -231,8 +234,8 @@ const char *const screen_text::TABLE[] = {
|
||||
"Standby",
|
||||
"Home",
|
||||
"Away",
|
||||
"Above the horizon",
|
||||
"Below the horizon",
|
||||
"Above horizon",
|
||||
"Below horizon",
|
||||
"Docked",
|
||||
"Cleaning",
|
||||
"Paused",
|
||||
@@ -256,8 +259,8 @@ const char *const screen_text::TABLE[] = {
|
||||
"Normal",
|
||||
"Charging",
|
||||
"Not charging",
|
||||
"Danger",
|
||||
"Safe",
|
||||
"Detected",
|
||||
"Clear",
|
||||
"Cold",
|
||||
"Normal",
|
||||
"Connected",
|
||||
@@ -266,21 +269,21 @@ const char *const screen_text::TABLE[] = {
|
||||
"Closed",
|
||||
"Open",
|
||||
"Closed",
|
||||
"Danger",
|
||||
"Safe",
|
||||
"Detected",
|
||||
"Clear",
|
||||
"Hot",
|
||||
"Normal",
|
||||
"Light",
|
||||
"Dark",
|
||||
"Open",
|
||||
"Light detected",
|
||||
"No light",
|
||||
"Unlocked",
|
||||
"Locked",
|
||||
"Wet",
|
||||
"Dry",
|
||||
"Motion",
|
||||
"No motion",
|
||||
"Detected",
|
||||
"Clear",
|
||||
"Moving",
|
||||
"Still",
|
||||
"Occupied",
|
||||
"Not moving",
|
||||
"Detected",
|
||||
"Clear",
|
||||
"Open",
|
||||
"Closed",
|
||||
@@ -292,20 +295,20 @@ const char *const screen_text::TABLE[] = {
|
||||
"Away",
|
||||
"Problem",
|
||||
"OK",
|
||||
"Active",
|
||||
"Inactive",
|
||||
"Running",
|
||||
"Not running",
|
||||
"Unsafe",
|
||||
"Safe",
|
||||
"Smoke",
|
||||
"No smoke",
|
||||
"Sound",
|
||||
"Silent",
|
||||
"Tampering",
|
||||
"OK",
|
||||
"Update",
|
||||
"Up to date",
|
||||
"Vibration",
|
||||
"Still",
|
||||
"Detected",
|
||||
"Clear",
|
||||
"Detected",
|
||||
"Clear",
|
||||
"Tampering detected",
|
||||
"Clear",
|
||||
"Update available",
|
||||
"Up-to-date",
|
||||
"Detected",
|
||||
"Clear",
|
||||
"Open",
|
||||
"Closed"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user