378d0b3e61
The firmware takes its texts from screen_manager/translations/<code>.json at build time (components/smart_display: one table in main.cpp, keys in screen_text_keys.h), and the fonts carry every letter European languages write with. The app keeps Settings -> Language & region (language, clock, numbers) for every screen, writes LANGUAGE into the screens' YAML and sends the clock and the number format in the layout message; the per-screen 24-hour clock goes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
280 lines
12 KiB
C++
280 lines
12 KiB
C++
// GENERATED by tools/i18n.py from screen_manager/translations/en.json; run `python3 tools/i18n.py header`
|
|
// after changing the keys of the `screen` section. The index of every text a screen shows in its language's
|
|
// table (screen_text.h); a list such as the month names is its first index plus a count.
|
|
#pragma once
|
|
#include <cstdint>
|
|
|
|
namespace screen_text {
|
|
namespace txt {
|
|
constexpr uint16_t number_decimal = 0;
|
|
constexpr uint16_t number_group = 1;
|
|
constexpr uint16_t time_just_now = 2;
|
|
constexpr uint16_t time_minutes_ago = 3;
|
|
constexpr uint16_t time_hours_ago = 4;
|
|
constexpr uint16_t time_yesterday = 5;
|
|
constexpr uint16_t time_days_ago = 6;
|
|
constexpr uint16_t time_weeks_ago = 7;
|
|
constexpr uint16_t time_months_ago = 8;
|
|
constexpr uint16_t time_years_ago = 9;
|
|
constexpr uint16_t time_in_minutes = 10;
|
|
constexpr uint16_t time_in_hours = 11;
|
|
constexpr uint16_t time_tomorrow = 12;
|
|
constexpr uint16_t time_in_days = 13;
|
|
constexpr uint16_t time_am = 14;
|
|
constexpr uint16_t time_pm = 15;
|
|
constexpr uint16_t date_top_bar = 61;
|
|
constexpr uint16_t date_full = 62;
|
|
constexpr uint16_t date_day_month = 63;
|
|
constexpr uint16_t date_weekday_time = 64;
|
|
constexpr uint16_t duration_seconds = 65;
|
|
constexpr uint16_t duration_minutes = 66;
|
|
constexpr uint16_t duration_hours = 67;
|
|
constexpr uint16_t duration_hours_minutes = 68;
|
|
constexpr uint16_t duration_days = 69;
|
|
constexpr uint16_t duration_days_hours = 70;
|
|
constexpr uint16_t status_connecting = 71;
|
|
constexpr uint16_t status_waiting = 72;
|
|
constexpr uint16_t status_loading_tiles = 73;
|
|
constexpr uint16_t status_ha_not_connected = 74;
|
|
constexpr uint16_t status_manager_not_active = 75;
|
|
constexpr uint16_t status_choose_tiles = 76;
|
|
constexpr uint16_t status_home = 77;
|
|
constexpr uint16_t status_no_network = 78;
|
|
constexpr uint16_t settings_title = 79;
|
|
constexpr uint16_t settings_brightness = 80;
|
|
constexpr uint16_t settings_night = 81;
|
|
constexpr uint16_t settings_screen = 82;
|
|
constexpr uint16_t settings_this_screen = 83;
|
|
constexpr uint16_t settings_dark_mode = 84;
|
|
constexpr uint16_t settings_auto_standby = 85;
|
|
constexpr uint16_t settings_standby_after = 86;
|
|
constexpr uint16_t settings_standby_brightness = 87;
|
|
constexpr uint16_t settings_night_mode = 88;
|
|
constexpr uint16_t settings_starts = 89;
|
|
constexpr uint16_t settings_ends = 90;
|
|
constexpr uint16_t settings_night_brightness = 91;
|
|
constexpr uint16_t settings_back_to_page_1 = 92;
|
|
constexpr uint16_t settings_after = 93;
|
|
constexpr uint16_t settings_also_on_standby = 94;
|
|
constexpr uint16_t settings_swipe_between_pages = 95;
|
|
constexpr uint16_t settings_page_buttons = 96;
|
|
constexpr uint16_t settings_rotation = 97;
|
|
constexpr uint16_t settings_address = 98;
|
|
constexpr uint16_t settings_firmware = 99;
|
|
constexpr uint16_t settings_home_assistant = 100;
|
|
constexpr uint16_t settings_restart = 101;
|
|
constexpr uint16_t settings_tap_again_to_restart = 102;
|
|
constexpr uint16_t settings_seconds = 103;
|
|
constexpr uint16_t settings_minutes = 104;
|
|
constexpr uint16_t settings_hours = 105;
|
|
constexpr uint16_t settings_hours_minutes = 106;
|
|
constexpr uint16_t tile_tap_to_open = 107;
|
|
constexpr uint16_t tile_page = 108;
|
|
constexpr uint16_t tile_unavailable = 109;
|
|
constexpr uint16_t tile_refused = 110;
|
|
constexpr uint16_t tile_command_sent = 111;
|
|
constexpr uint16_t tile_confirmed = 112;
|
|
constexpr uint16_t alert_notification = 113;
|
|
constexpr uint16_t alert_ok = 114;
|
|
constexpr uint16_t light_color = 115;
|
|
constexpr uint16_t light_color_temperature = 116;
|
|
constexpr uint16_t light_brightness = 117;
|
|
constexpr uint16_t light_waiting = 118;
|
|
constexpr uint16_t effects_effect = 119;
|
|
constexpr uint16_t effects_nothing = 120;
|
|
constexpr uint16_t effects_loading = 121;
|
|
constexpr uint16_t effects_not_connected = 122;
|
|
constexpr uint16_t climate_target = 123;
|
|
constexpr uint16_t climate_mode = 124;
|
|
constexpr uint16_t climate_fan = 125;
|
|
constexpr uint16_t climate_swing = 126;
|
|
constexpr uint16_t climate_now = 127;
|
|
constexpr uint16_t vacuum_check_robot = 128;
|
|
constexpr uint16_t vacuum_auto_suction = 129;
|
|
constexpr uint16_t vacuum_robot_chooses = 130;
|
|
constexpr uint16_t vacuum_per_room = 131;
|
|
constexpr uint16_t vacuum_speed_quiet = 132;
|
|
constexpr uint16_t vacuum_speed_balanced = 133;
|
|
constexpr uint16_t vacuum_speed_turbo = 134;
|
|
constexpr uint16_t vacuum_speed_max = 135;
|
|
constexpr uint16_t vacuum_pause_cleaning = 136;
|
|
constexpr uint16_t vacuum_pause = 137;
|
|
constexpr uint16_t vacuum_resume = 138;
|
|
constexpr uint16_t vacuum_start_cleaning = 139;
|
|
constexpr uint16_t vacuum_clean = 140;
|
|
constexpr uint16_t vacuum_dock = 141;
|
|
constexpr uint16_t cover_position = 142;
|
|
constexpr uint16_t cover_tilt = 143;
|
|
constexpr uint16_t cover_tilt_value = 144;
|
|
constexpr uint16_t weather_feels_like = 145;
|
|
constexpr uint16_t weather_no_forecast = 146;
|
|
constexpr uint16_t weather_coming_days = 147;
|
|
constexpr uint16_t history_no_data = 148;
|
|
constexpr uint16_t history_average = 149;
|
|
constexpr uint16_t history_average_of = 150;
|
|
constexpr uint16_t history_now = 151;
|
|
constexpr uint16_t history_range_hour = 152;
|
|
constexpr uint16_t history_range_day = 153;
|
|
constexpr uint16_t history_range_week = 154;
|
|
constexpr uint16_t history_high = 155;
|
|
constexpr uint16_t history_low = 156;
|
|
constexpr uint16_t history_times = 157;
|
|
constexpr uint16_t history_loading = 158;
|
|
constexpr uint16_t history_empty = 159;
|
|
constexpr uint16_t history_unavailable = 160;
|
|
constexpr uint16_t media_muted = 161;
|
|
constexpr uint16_t media_not_playing = 162;
|
|
constexpr uint16_t media_loading = 163;
|
|
constexpr uint16_t timer_running = 164;
|
|
constexpr uint16_t timer_paused = 165;
|
|
constexpr uint16_t timer_stopped = 166;
|
|
constexpr uint16_t timer_pause = 167;
|
|
constexpr uint16_t timer_start = 168;
|
|
constexpr uint16_t timer_cancel = 169;
|
|
constexpr uint16_t timer_paused_left = 170;
|
|
constexpr uint16_t sun_name = 171;
|
|
constexpr uint16_t sun_sunrise = 172;
|
|
constexpr uint16_t sun_sunset = 173;
|
|
constexpr uint16_t sun_rise = 174;
|
|
constexpr uint16_t sun_set = 175;
|
|
constexpr uint16_t script_running = 176;
|
|
constexpr uint16_t script_never_run = 177;
|
|
constexpr uint16_t script_last_time = 178;
|
|
constexpr uint16_t script_yesterday_time = 179;
|
|
constexpr uint16_t script_last_date = 180;
|
|
constexpr uint16_t camera_no_image = 181;
|
|
constexpr uint16_t camera_loading = 182;
|
|
constexpr uint16_t camera_live = 183;
|
|
constexpr uint16_t camera_recording = 184;
|
|
constexpr uint16_t camera_tap_to_view = 185;
|
|
constexpr uint16_t camera_no_image_yet = 186;
|
|
constexpr uint16_t button_activate = 187;
|
|
constexpr uint16_t button_run = 188;
|
|
constexpr uint16_t button_press = 189;
|
|
constexpr uint16_t calibration_title = 190;
|
|
constexpr uint16_t calibration_touch_check = 191;
|
|
constexpr uint16_t calibration_hold = 192;
|
|
constexpr uint16_t calibration_crosshair = 193;
|
|
constexpr uint16_t calibration_gently = 194;
|
|
constexpr uint16_t calibration_same = 195;
|
|
constexpr uint16_t calibration_rejected = 196;
|
|
constexpr uint16_t calibration_save_failed = 197;
|
|
constexpr uint16_t ha_on = 198;
|
|
constexpr uint16_t ha_off = 199;
|
|
constexpr uint16_t ha_climate_off = 200;
|
|
constexpr uint16_t ha_climate_heat = 201;
|
|
constexpr uint16_t ha_climate_cool = 202;
|
|
constexpr uint16_t ha_climate_heat_cool = 203;
|
|
constexpr uint16_t ha_climate_auto = 204;
|
|
constexpr uint16_t ha_climate_dry = 205;
|
|
constexpr uint16_t ha_climate_fan_only = 206;
|
|
constexpr uint16_t ha_hvac_action_heating = 207;
|
|
constexpr uint16_t ha_hvac_action_cooling = 208;
|
|
constexpr uint16_t ha_hvac_action_idle = 209;
|
|
constexpr uint16_t ha_hvac_action_off = 210;
|
|
constexpr uint16_t ha_hvac_action_drying = 211;
|
|
constexpr uint16_t ha_hvac_action_fan = 212;
|
|
constexpr uint16_t ha_hvac_action_preheating = 213;
|
|
constexpr uint16_t ha_hvac_action_defrosting = 214;
|
|
constexpr uint16_t ha_cover_open = 215;
|
|
constexpr uint16_t ha_cover_closed = 216;
|
|
constexpr uint16_t ha_cover_opening = 217;
|
|
constexpr uint16_t ha_cover_closing = 218;
|
|
constexpr uint16_t ha_media_playing = 219;
|
|
constexpr uint16_t ha_media_paused = 220;
|
|
constexpr uint16_t ha_media_idle = 221;
|
|
constexpr uint16_t ha_media_standby = 222;
|
|
constexpr uint16_t ha_person_home = 223;
|
|
constexpr uint16_t ha_person_not_home = 224;
|
|
constexpr uint16_t ha_sun_above_horizon = 225;
|
|
constexpr uint16_t ha_sun_below_horizon = 226;
|
|
constexpr uint16_t ha_vacuum_docked = 227;
|
|
constexpr uint16_t ha_vacuum_cleaning = 228;
|
|
constexpr uint16_t ha_vacuum_paused = 229;
|
|
constexpr uint16_t ha_vacuum_returning = 230;
|
|
constexpr uint16_t ha_vacuum_idle = 231;
|
|
constexpr uint16_t ha_weather_sunny = 232;
|
|
constexpr uint16_t ha_weather_clear_night = 233;
|
|
constexpr uint16_t ha_weather_cloudy = 234;
|
|
constexpr uint16_t ha_weather_partlycloudy = 235;
|
|
constexpr uint16_t ha_weather_rainy = 236;
|
|
constexpr uint16_t ha_weather_pouring = 237;
|
|
constexpr uint16_t ha_weather_snowy = 238;
|
|
constexpr uint16_t ha_weather_snowy_rainy = 239;
|
|
constexpr uint16_t ha_weather_fog = 240;
|
|
constexpr uint16_t ha_weather_hail = 241;
|
|
constexpr uint16_t ha_weather_lightning = 242;
|
|
constexpr uint16_t ha_weather_lightning_rainy = 243;
|
|
constexpr uint16_t ha_weather_windy = 244;
|
|
constexpr uint16_t ha_weather_exceptional = 245;
|
|
constexpr uint16_t ha_binary_battery_on = 246;
|
|
constexpr uint16_t ha_binary_battery_off = 247;
|
|
constexpr uint16_t ha_binary_battery_charging_on = 248;
|
|
constexpr uint16_t ha_binary_battery_charging_off = 249;
|
|
constexpr uint16_t ha_binary_carbon_monoxide_on = 250;
|
|
constexpr uint16_t ha_binary_carbon_monoxide_off = 251;
|
|
constexpr uint16_t ha_binary_cold_on = 252;
|
|
constexpr uint16_t ha_binary_cold_off = 253;
|
|
constexpr uint16_t ha_binary_connectivity_on = 254;
|
|
constexpr uint16_t ha_binary_connectivity_off = 255;
|
|
constexpr uint16_t ha_binary_door_on = 256;
|
|
constexpr uint16_t ha_binary_door_off = 257;
|
|
constexpr uint16_t ha_binary_garage_door_on = 258;
|
|
constexpr uint16_t ha_binary_garage_door_off = 259;
|
|
constexpr uint16_t ha_binary_gas_on = 260;
|
|
constexpr uint16_t ha_binary_gas_off = 261;
|
|
constexpr uint16_t ha_binary_heat_on = 262;
|
|
constexpr uint16_t ha_binary_heat_off = 263;
|
|
constexpr uint16_t ha_binary_light_on = 264;
|
|
constexpr uint16_t ha_binary_light_off = 265;
|
|
constexpr uint16_t ha_binary_lock_on = 266;
|
|
constexpr uint16_t ha_binary_lock_off = 267;
|
|
constexpr uint16_t ha_binary_moisture_on = 268;
|
|
constexpr uint16_t ha_binary_moisture_off = 269;
|
|
constexpr uint16_t ha_binary_motion_on = 270;
|
|
constexpr uint16_t ha_binary_motion_off = 271;
|
|
constexpr uint16_t ha_binary_moving_on = 272;
|
|
constexpr uint16_t ha_binary_moving_off = 273;
|
|
constexpr uint16_t ha_binary_occupancy_on = 274;
|
|
constexpr uint16_t ha_binary_occupancy_off = 275;
|
|
constexpr uint16_t ha_binary_opening_on = 276;
|
|
constexpr uint16_t ha_binary_opening_off = 277;
|
|
constexpr uint16_t ha_binary_plug_on = 278;
|
|
constexpr uint16_t ha_binary_plug_off = 279;
|
|
constexpr uint16_t ha_binary_power_on = 280;
|
|
constexpr uint16_t ha_binary_power_off = 281;
|
|
constexpr uint16_t ha_binary_presence_on = 282;
|
|
constexpr uint16_t ha_binary_presence_off = 283;
|
|
constexpr uint16_t ha_binary_problem_on = 284;
|
|
constexpr uint16_t ha_binary_problem_off = 285;
|
|
constexpr uint16_t ha_binary_running_on = 286;
|
|
constexpr uint16_t ha_binary_running_off = 287;
|
|
constexpr uint16_t ha_binary_safety_on = 288;
|
|
constexpr uint16_t ha_binary_safety_off = 289;
|
|
constexpr uint16_t ha_binary_smoke_on = 290;
|
|
constexpr uint16_t ha_binary_smoke_off = 291;
|
|
constexpr uint16_t ha_binary_sound_on = 292;
|
|
constexpr uint16_t ha_binary_sound_off = 293;
|
|
constexpr uint16_t ha_binary_tamper_on = 294;
|
|
constexpr uint16_t ha_binary_tamper_off = 295;
|
|
constexpr uint16_t ha_binary_update_on = 296;
|
|
constexpr uint16_t ha_binary_update_off = 297;
|
|
constexpr uint16_t ha_binary_vibration_on = 298;
|
|
constexpr uint16_t ha_binary_vibration_off = 299;
|
|
constexpr uint16_t ha_binary_window_on = 300;
|
|
constexpr uint16_t ha_binary_window_off = 301;
|
|
constexpr uint16_t date_weekdays = 16;
|
|
constexpr uint16_t date_weekdays_count = 7;
|
|
constexpr uint16_t date_weekdays_short = 23;
|
|
constexpr uint16_t date_weekdays_short_count = 7;
|
|
constexpr uint16_t date_weekdays_min = 30;
|
|
constexpr uint16_t date_weekdays_min_count = 7;
|
|
constexpr uint16_t date_months = 37;
|
|
constexpr uint16_t date_months_count = 12;
|
|
constexpr uint16_t date_months_short = 49;
|
|
constexpr uint16_t date_months_short_count = 12;
|
|
} // namespace txt
|
|
constexpr uint16_t KEY_COUNT = 302;
|
|
constexpr uint32_t KEYS_HASH = 0x725A92EEu;
|
|
} // namespace screen_text
|