Keep the news at the end of a tile's line: a shorter "Yest. 9:15 PM" and a robot's battery that stays
A tile has one line under the name, and LVGL cuts what doesn't fit off the end, which is where that line often carries what you want to read. Two lines lost it: - "Yesterday 9:15 PM" (English with a 12-hour clock) read "Yesterday 9:1…" on both boards. The tile now takes a shorter wording of the same line when the full one doesn't fit, screen.script.yesterday_time_short; every language whose word is short enough keeps the same text there. - A robot's battery stood behind Home Assistant's own word for its state, so German, French and Polish showed "Angedockt / 10…". The battery keeps its room now and the word takes the dots: "Angedo… / 10 %". `tools/i18n.py check` measures a tile line with a 12-hour clock in its placeholder, so a translation that is too long for the line fails there. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -144,144 +144,145 @@ constexpr uint16_t script_running = 179;
|
||||
constexpr uint16_t script_never_run = 180;
|
||||
constexpr uint16_t script_last_time = 181;
|
||||
constexpr uint16_t script_yesterday_time = 182;
|
||||
constexpr uint16_t script_last_date = 183;
|
||||
constexpr uint16_t camera_no_image = 184;
|
||||
constexpr uint16_t camera_loading = 185;
|
||||
constexpr uint16_t camera_live = 186;
|
||||
constexpr uint16_t camera_recording = 187;
|
||||
constexpr uint16_t camera_tap_to_view = 188;
|
||||
constexpr uint16_t camera_no_image_yet = 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_unavailable = 200;
|
||||
constexpr uint16_t ha_climate_off = 201;
|
||||
constexpr uint16_t ha_climate_heat = 202;
|
||||
constexpr uint16_t ha_climate_cool = 203;
|
||||
constexpr uint16_t ha_climate_heat_cool = 204;
|
||||
constexpr uint16_t ha_climate_auto = 205;
|
||||
constexpr uint16_t ha_climate_dry = 206;
|
||||
constexpr uint16_t ha_climate_fan_only = 207;
|
||||
constexpr uint16_t ha_hvac_action_heating = 208;
|
||||
constexpr uint16_t ha_hvac_action_cooling = 209;
|
||||
constexpr uint16_t ha_hvac_action_idle = 210;
|
||||
constexpr uint16_t ha_hvac_action_off = 211;
|
||||
constexpr uint16_t ha_hvac_action_drying = 212;
|
||||
constexpr uint16_t ha_hvac_action_fan = 213;
|
||||
constexpr uint16_t ha_hvac_action_preheating = 214;
|
||||
constexpr uint16_t ha_hvac_action_defrosting = 215;
|
||||
constexpr uint16_t ha_cover_open = 216;
|
||||
constexpr uint16_t ha_cover_closed = 217;
|
||||
constexpr uint16_t ha_cover_opening = 218;
|
||||
constexpr uint16_t ha_cover_closing = 219;
|
||||
constexpr uint16_t ha_media_playing = 220;
|
||||
constexpr uint16_t ha_media_paused = 221;
|
||||
constexpr uint16_t ha_media_idle = 222;
|
||||
constexpr uint16_t ha_media_standby = 223;
|
||||
constexpr uint16_t ha_person_home = 224;
|
||||
constexpr uint16_t ha_person_not_home = 225;
|
||||
constexpr uint16_t ha_sun_above_horizon = 226;
|
||||
constexpr uint16_t ha_sun_below_horizon = 227;
|
||||
constexpr uint16_t ha_vacuum_docked = 228;
|
||||
constexpr uint16_t ha_vacuum_cleaning = 229;
|
||||
constexpr uint16_t ha_vacuum_paused = 230;
|
||||
constexpr uint16_t ha_vacuum_returning = 231;
|
||||
constexpr uint16_t ha_vacuum_idle = 232;
|
||||
constexpr uint16_t ha_weather_sunny = 233;
|
||||
constexpr uint16_t ha_weather_clear_night = 234;
|
||||
constexpr uint16_t ha_weather_cloudy = 235;
|
||||
constexpr uint16_t ha_weather_partlycloudy = 236;
|
||||
constexpr uint16_t ha_weather_rainy = 237;
|
||||
constexpr uint16_t ha_weather_pouring = 238;
|
||||
constexpr uint16_t ha_weather_snowy = 239;
|
||||
constexpr uint16_t ha_weather_snowy_rainy = 240;
|
||||
constexpr uint16_t ha_weather_fog = 241;
|
||||
constexpr uint16_t ha_weather_hail = 242;
|
||||
constexpr uint16_t ha_weather_lightning = 243;
|
||||
constexpr uint16_t ha_weather_lightning_rainy = 244;
|
||||
constexpr uint16_t ha_weather_windy = 245;
|
||||
constexpr uint16_t ha_weather_exceptional = 246;
|
||||
constexpr uint16_t ha_binary_battery_on = 247;
|
||||
constexpr uint16_t ha_binary_battery_off = 248;
|
||||
constexpr uint16_t ha_binary_battery_charging_on = 249;
|
||||
constexpr uint16_t ha_binary_battery_charging_off = 250;
|
||||
constexpr uint16_t ha_binary_carbon_monoxide_on = 251;
|
||||
constexpr uint16_t ha_binary_carbon_monoxide_off = 252;
|
||||
constexpr uint16_t ha_binary_cold_on = 253;
|
||||
constexpr uint16_t ha_binary_cold_off = 254;
|
||||
constexpr uint16_t ha_binary_connectivity_on = 255;
|
||||
constexpr uint16_t ha_binary_connectivity_off = 256;
|
||||
constexpr uint16_t ha_binary_door_on = 257;
|
||||
constexpr uint16_t ha_binary_door_off = 258;
|
||||
constexpr uint16_t ha_binary_garage_door_on = 259;
|
||||
constexpr uint16_t ha_binary_garage_door_off = 260;
|
||||
constexpr uint16_t ha_binary_gas_on = 261;
|
||||
constexpr uint16_t ha_binary_gas_off = 262;
|
||||
constexpr uint16_t ha_binary_heat_on = 263;
|
||||
constexpr uint16_t ha_binary_heat_off = 264;
|
||||
constexpr uint16_t ha_binary_light_on = 265;
|
||||
constexpr uint16_t ha_binary_light_off = 266;
|
||||
constexpr uint16_t ha_binary_lock_on = 267;
|
||||
constexpr uint16_t ha_binary_lock_off = 268;
|
||||
constexpr uint16_t ha_binary_moisture_on = 269;
|
||||
constexpr uint16_t ha_binary_moisture_off = 270;
|
||||
constexpr uint16_t ha_binary_motion_on = 271;
|
||||
constexpr uint16_t ha_binary_motion_off = 272;
|
||||
constexpr uint16_t ha_binary_moving_on = 273;
|
||||
constexpr uint16_t ha_binary_moving_off = 274;
|
||||
constexpr uint16_t ha_binary_occupancy_on = 275;
|
||||
constexpr uint16_t ha_binary_occupancy_off = 276;
|
||||
constexpr uint16_t ha_binary_opening_on = 277;
|
||||
constexpr uint16_t ha_binary_opening_off = 278;
|
||||
constexpr uint16_t ha_binary_plug_on = 279;
|
||||
constexpr uint16_t ha_binary_plug_off = 280;
|
||||
constexpr uint16_t ha_binary_power_on = 281;
|
||||
constexpr uint16_t ha_binary_power_off = 282;
|
||||
constexpr uint16_t ha_binary_presence_on = 283;
|
||||
constexpr uint16_t ha_binary_presence_off = 284;
|
||||
constexpr uint16_t ha_binary_problem_on = 285;
|
||||
constexpr uint16_t ha_binary_problem_off = 286;
|
||||
constexpr uint16_t ha_binary_running_on = 287;
|
||||
constexpr uint16_t ha_binary_running_off = 288;
|
||||
constexpr uint16_t ha_binary_safety_on = 289;
|
||||
constexpr uint16_t ha_binary_safety_off = 290;
|
||||
constexpr uint16_t ha_binary_smoke_on = 291;
|
||||
constexpr uint16_t ha_binary_smoke_off = 292;
|
||||
constexpr uint16_t ha_binary_sound_on = 293;
|
||||
constexpr uint16_t ha_binary_sound_off = 294;
|
||||
constexpr uint16_t ha_binary_tamper_on = 295;
|
||||
constexpr uint16_t ha_binary_tamper_off = 296;
|
||||
constexpr uint16_t ha_binary_update_on = 297;
|
||||
constexpr uint16_t ha_binary_update_off = 298;
|
||||
constexpr uint16_t ha_binary_vibration_on = 299;
|
||||
constexpr uint16_t ha_binary_vibration_off = 300;
|
||||
constexpr uint16_t ha_binary_window_on = 301;
|
||||
constexpr uint16_t ha_binary_window_off = 302;
|
||||
constexpr uint16_t ha_button_activate = 303;
|
||||
constexpr uint16_t ha_button_run = 304;
|
||||
constexpr uint16_t ha_button_press = 305;
|
||||
constexpr uint16_t ha_climate_fan_auto = 306;
|
||||
constexpr uint16_t ha_climate_fan_low = 307;
|
||||
constexpr uint16_t ha_climate_fan_medium = 308;
|
||||
constexpr uint16_t ha_climate_fan_high = 309;
|
||||
constexpr uint16_t ha_climate_fan_middle = 310;
|
||||
constexpr uint16_t ha_climate_fan_focus = 311;
|
||||
constexpr uint16_t ha_climate_fan_diffuse = 312;
|
||||
constexpr uint16_t ha_climate_fan_top = 313;
|
||||
constexpr uint16_t ha_climate_fan_on = 314;
|
||||
constexpr uint16_t ha_climate_fan_off = 315;
|
||||
constexpr uint16_t ha_climate_swing_on = 316;
|
||||
constexpr uint16_t ha_climate_swing_off = 317;
|
||||
constexpr uint16_t ha_climate_swing_both = 318;
|
||||
constexpr uint16_t ha_climate_swing_vertical = 319;
|
||||
constexpr uint16_t ha_climate_swing_horizontal = 320;
|
||||
constexpr uint16_t script_yesterday_time_short = 183;
|
||||
constexpr uint16_t script_last_date = 184;
|
||||
constexpr uint16_t camera_no_image = 185;
|
||||
constexpr uint16_t camera_loading = 186;
|
||||
constexpr uint16_t camera_live = 187;
|
||||
constexpr uint16_t camera_recording = 188;
|
||||
constexpr uint16_t camera_tap_to_view = 189;
|
||||
constexpr uint16_t camera_no_image_yet = 190;
|
||||
constexpr uint16_t calibration_title = 191;
|
||||
constexpr uint16_t calibration_touch_check = 192;
|
||||
constexpr uint16_t calibration_hold = 193;
|
||||
constexpr uint16_t calibration_crosshair = 194;
|
||||
constexpr uint16_t calibration_gently = 195;
|
||||
constexpr uint16_t calibration_same = 196;
|
||||
constexpr uint16_t calibration_rejected = 197;
|
||||
constexpr uint16_t calibration_save_failed = 198;
|
||||
constexpr uint16_t ha_on = 199;
|
||||
constexpr uint16_t ha_off = 200;
|
||||
constexpr uint16_t ha_unavailable = 201;
|
||||
constexpr uint16_t ha_climate_off = 202;
|
||||
constexpr uint16_t ha_climate_heat = 203;
|
||||
constexpr uint16_t ha_climate_cool = 204;
|
||||
constexpr uint16_t ha_climate_heat_cool = 205;
|
||||
constexpr uint16_t ha_climate_auto = 206;
|
||||
constexpr uint16_t ha_climate_dry = 207;
|
||||
constexpr uint16_t ha_climate_fan_only = 208;
|
||||
constexpr uint16_t ha_hvac_action_heating = 209;
|
||||
constexpr uint16_t ha_hvac_action_cooling = 210;
|
||||
constexpr uint16_t ha_hvac_action_idle = 211;
|
||||
constexpr uint16_t ha_hvac_action_off = 212;
|
||||
constexpr uint16_t ha_hvac_action_drying = 213;
|
||||
constexpr uint16_t ha_hvac_action_fan = 214;
|
||||
constexpr uint16_t ha_hvac_action_preheating = 215;
|
||||
constexpr uint16_t ha_hvac_action_defrosting = 216;
|
||||
constexpr uint16_t ha_cover_open = 217;
|
||||
constexpr uint16_t ha_cover_closed = 218;
|
||||
constexpr uint16_t ha_cover_opening = 219;
|
||||
constexpr uint16_t ha_cover_closing = 220;
|
||||
constexpr uint16_t ha_media_playing = 221;
|
||||
constexpr uint16_t ha_media_paused = 222;
|
||||
constexpr uint16_t ha_media_idle = 223;
|
||||
constexpr uint16_t ha_media_standby = 224;
|
||||
constexpr uint16_t ha_person_home = 225;
|
||||
constexpr uint16_t ha_person_not_home = 226;
|
||||
constexpr uint16_t ha_sun_above_horizon = 227;
|
||||
constexpr uint16_t ha_sun_below_horizon = 228;
|
||||
constexpr uint16_t ha_vacuum_docked = 229;
|
||||
constexpr uint16_t ha_vacuum_cleaning = 230;
|
||||
constexpr uint16_t ha_vacuum_paused = 231;
|
||||
constexpr uint16_t ha_vacuum_returning = 232;
|
||||
constexpr uint16_t ha_vacuum_idle = 233;
|
||||
constexpr uint16_t ha_weather_sunny = 234;
|
||||
constexpr uint16_t ha_weather_clear_night = 235;
|
||||
constexpr uint16_t ha_weather_cloudy = 236;
|
||||
constexpr uint16_t ha_weather_partlycloudy = 237;
|
||||
constexpr uint16_t ha_weather_rainy = 238;
|
||||
constexpr uint16_t ha_weather_pouring = 239;
|
||||
constexpr uint16_t ha_weather_snowy = 240;
|
||||
constexpr uint16_t ha_weather_snowy_rainy = 241;
|
||||
constexpr uint16_t ha_weather_fog = 242;
|
||||
constexpr uint16_t ha_weather_hail = 243;
|
||||
constexpr uint16_t ha_weather_lightning = 244;
|
||||
constexpr uint16_t ha_weather_lightning_rainy = 245;
|
||||
constexpr uint16_t ha_weather_windy = 246;
|
||||
constexpr uint16_t ha_weather_exceptional = 247;
|
||||
constexpr uint16_t ha_binary_battery_on = 248;
|
||||
constexpr uint16_t ha_binary_battery_off = 249;
|
||||
constexpr uint16_t ha_binary_battery_charging_on = 250;
|
||||
constexpr uint16_t ha_binary_battery_charging_off = 251;
|
||||
constexpr uint16_t ha_binary_carbon_monoxide_on = 252;
|
||||
constexpr uint16_t ha_binary_carbon_monoxide_off = 253;
|
||||
constexpr uint16_t ha_binary_cold_on = 254;
|
||||
constexpr uint16_t ha_binary_cold_off = 255;
|
||||
constexpr uint16_t ha_binary_connectivity_on = 256;
|
||||
constexpr uint16_t ha_binary_connectivity_off = 257;
|
||||
constexpr uint16_t ha_binary_door_on = 258;
|
||||
constexpr uint16_t ha_binary_door_off = 259;
|
||||
constexpr uint16_t ha_binary_garage_door_on = 260;
|
||||
constexpr uint16_t ha_binary_garage_door_off = 261;
|
||||
constexpr uint16_t ha_binary_gas_on = 262;
|
||||
constexpr uint16_t ha_binary_gas_off = 263;
|
||||
constexpr uint16_t ha_binary_heat_on = 264;
|
||||
constexpr uint16_t ha_binary_heat_off = 265;
|
||||
constexpr uint16_t ha_binary_light_on = 266;
|
||||
constexpr uint16_t ha_binary_light_off = 267;
|
||||
constexpr uint16_t ha_binary_lock_on = 268;
|
||||
constexpr uint16_t ha_binary_lock_off = 269;
|
||||
constexpr uint16_t ha_binary_moisture_on = 270;
|
||||
constexpr uint16_t ha_binary_moisture_off = 271;
|
||||
constexpr uint16_t ha_binary_motion_on = 272;
|
||||
constexpr uint16_t ha_binary_motion_off = 273;
|
||||
constexpr uint16_t ha_binary_moving_on = 274;
|
||||
constexpr uint16_t ha_binary_moving_off = 275;
|
||||
constexpr uint16_t ha_binary_occupancy_on = 276;
|
||||
constexpr uint16_t ha_binary_occupancy_off = 277;
|
||||
constexpr uint16_t ha_binary_opening_on = 278;
|
||||
constexpr uint16_t ha_binary_opening_off = 279;
|
||||
constexpr uint16_t ha_binary_plug_on = 280;
|
||||
constexpr uint16_t ha_binary_plug_off = 281;
|
||||
constexpr uint16_t ha_binary_power_on = 282;
|
||||
constexpr uint16_t ha_binary_power_off = 283;
|
||||
constexpr uint16_t ha_binary_presence_on = 284;
|
||||
constexpr uint16_t ha_binary_presence_off = 285;
|
||||
constexpr uint16_t ha_binary_problem_on = 286;
|
||||
constexpr uint16_t ha_binary_problem_off = 287;
|
||||
constexpr uint16_t ha_binary_running_on = 288;
|
||||
constexpr uint16_t ha_binary_running_off = 289;
|
||||
constexpr uint16_t ha_binary_safety_on = 290;
|
||||
constexpr uint16_t ha_binary_safety_off = 291;
|
||||
constexpr uint16_t ha_binary_smoke_on = 292;
|
||||
constexpr uint16_t ha_binary_smoke_off = 293;
|
||||
constexpr uint16_t ha_binary_sound_on = 294;
|
||||
constexpr uint16_t ha_binary_sound_off = 295;
|
||||
constexpr uint16_t ha_binary_tamper_on = 296;
|
||||
constexpr uint16_t ha_binary_tamper_off = 297;
|
||||
constexpr uint16_t ha_binary_update_on = 298;
|
||||
constexpr uint16_t ha_binary_update_off = 299;
|
||||
constexpr uint16_t ha_binary_vibration_on = 300;
|
||||
constexpr uint16_t ha_binary_vibration_off = 301;
|
||||
constexpr uint16_t ha_binary_window_on = 302;
|
||||
constexpr uint16_t ha_binary_window_off = 303;
|
||||
constexpr uint16_t ha_button_activate = 304;
|
||||
constexpr uint16_t ha_button_run = 305;
|
||||
constexpr uint16_t ha_button_press = 306;
|
||||
constexpr uint16_t ha_climate_fan_auto = 307;
|
||||
constexpr uint16_t ha_climate_fan_low = 308;
|
||||
constexpr uint16_t ha_climate_fan_medium = 309;
|
||||
constexpr uint16_t ha_climate_fan_high = 310;
|
||||
constexpr uint16_t ha_climate_fan_middle = 311;
|
||||
constexpr uint16_t ha_climate_fan_focus = 312;
|
||||
constexpr uint16_t ha_climate_fan_diffuse = 313;
|
||||
constexpr uint16_t ha_climate_fan_top = 314;
|
||||
constexpr uint16_t ha_climate_fan_on = 315;
|
||||
constexpr uint16_t ha_climate_fan_off = 316;
|
||||
constexpr uint16_t ha_climate_swing_on = 317;
|
||||
constexpr uint16_t ha_climate_swing_off = 318;
|
||||
constexpr uint16_t ha_climate_swing_both = 319;
|
||||
constexpr uint16_t ha_climate_swing_vertical = 320;
|
||||
constexpr uint16_t ha_climate_swing_horizontal = 321;
|
||||
constexpr uint16_t date_weekdays = 18;
|
||||
constexpr uint16_t date_weekdays_count = 7;
|
||||
constexpr uint16_t date_weekdays_short = 25;
|
||||
@@ -293,6 +294,6 @@ constexpr uint16_t date_months_count = 12;
|
||||
constexpr uint16_t date_months_short = 51;
|
||||
constexpr uint16_t date_months_short_count = 12;
|
||||
} // namespace txt
|
||||
constexpr uint16_t KEY_COUNT = 321;
|
||||
constexpr uint32_t KEYS_HASH = 0x8FB53847u;
|
||||
constexpr uint16_t KEY_COUNT = 322;
|
||||
constexpr uint32_t KEYS_HASH = 0x6D3912FFu;
|
||||
} // namespace screen_text
|
||||
|
||||
Reference in New Issue
Block a user