8 Commits

Author SHA1 Message Date
Max Gramser 2743fdcdf7 Say in the translation guide what the tile's short "yesterday" is for
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 23:41:50 +02:00
Max Gramser a8070a0379 Say in the translation guide how to find a word, and that Home Assistant's own words are fixed in Home Assistant
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 22:26:23 +02:00
Max Gramser f02f429188 Weekdays that fit the weather columns, the top bar's own abbreviation, tile texts that fit, and a check that measures them
- The CYD's weather columns hold two letters beside the icon: every language has its own two-letter days (the CLDR's
  short width, Polish nd pn wt); French mar became nar there. check fails on a longer one.
- The top bar takes the language's abbreviation (sam. 19 sept., Sa., 19. Sept.), English keeps Sa 19 Sep.
- The editor's clock and date follow the screens: 7:05 PM in the top bar, 7:05 on the clock card.
- A long weather word ends in an ellipsis before the days.
- Tile lines that were cut on a screen are shorter (Zum Öffnen, Ouvrir, Otwórz, Sin imagen, ...); check measures
  them with the screens' font against the tile width of both boards.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 17:13:59 +02:00
Max Gramser 125346d94e Notation like Home Assistant, each screen in its own language, and the language in every build
From the end-to-end test on the bench boards and an independent review:
- Units spaced as Home Assistant does (54% / 54 % in German and French, 18°, 21.5 °C), in the firmware and the app.
- Grouping from five digits where the language does (1234 but 12.345 in Spanish, Polish, Portuguese): the layout
  message carries group_min and percent_space; an unknown number style no longer refuses a layout.
- Automatic follows Home Assistant's own language for the clock and numbers, also without a translation (Swedish:
  24 hours, 1 234,5; pt-BR: 1.234,5): regions.json from the CLDR for all 63 languages Home Assistant offers.
- 12-hour clock: the top bar says 3:48 PM, the clock card 3:48 (not 03:48), Last runs follow the clock.
- The climate setpoint font has the decimal comma; the value fonts have ², ³ and µ (m³ was a box).
- Weather days: at most three letters without the dot (mié, sáb, czw); the screen took three bytes.
- Texts fall back per key through the base language (pt-BR -> pt -> en) in the firmware and the app.
- Each screen gets the app's words in the language its firmware speaks; firmware from before the languages gets
  English and its own letters, not boxes.
- set_language re-reads what it writes (indentation, comments, quoted keys, CRLF, !include) and every build writes
  the language first; the 24-hour pin no longer hits a fresh install and waits for the old clock switches.
- Tests: region and notation, plural parity with the C++ rules, set_language edge cases, the pin, PUT /api/language.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 16:52:34 +02:00
Max Gramser e2284de7f3 The editor in Spanish and Portuguese, and Portugal's plural rule for Portuguese
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 15:28:54 +02:00
Max Gramser 42ed793aee Write the sun's and the forecast's times, and the top bar's, for the screens' 12 or 24-hour clock
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 15:11:14 +02:00
Max Gramser 286a431adf Explain how to check or add a language, and run the translation checks with the others
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 14:36:40 +02:00
Max Gramser 9362a5f1db Start the translations: one file per language, English as the source, and how to translate
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 13:52:29 +02:00