Skip to content

i18n: Czech interface language (cs) - #335

Merged
h-a-n-a-s-h-i merged 8 commits into
storytold:mainfrom
Losminek:cs-pr
Oct 11, 2026
Merged

h-a-n-a-s-h-i merged 8 commits into
storytold:mainfrom
Losminek:cs-pr

Conversation

@Losminek

Copy link
Copy Markdown
Contributor

Summary

Adds Czech (cs) as an interface language, in the same shape as the Korean, Russian,
Simplified Chinese and Brazilian Portuguese tables that landed in #104 and #82.

  • crates/ui-egui/src/i18n/cs.rs: all 266 labels of the reference (Japanese) table, the
    same key set as ko/pt/ru/zh.
  • i18n.rs: Language::Cs (name "Čeština", code cs, system tags cs-* / cs_*), appended
    to the end of ALL, so the switcher lists it last.
  • app.language.set help and error text, and the snapshot example usage, list cs.

Like the other tables, this covers only what the ribbon catalog covers today: the ribbon, sheet
tabs and widgets (roughly 12% of the interface strings). Dialogs, menus, context menus, panes and
messages stay English until the catalog grows.

What does not change

  • Formulas. Czech keeps the canonical en-US formula locale, like every interface language
    except Spanish: English function names, , separators, . decimals. No Czech function names,
    ; separator or decimal comma. A test pins this (=SUMA(1;2) is not accepted).
  • Number formats, regional settings, storage, command ids: untouched.
  • No new assets and no fonts (Czech letters are covered by the system UI fonts; a test checks it).

Tests

  • Catalog completeness now also requires a non-empty Czech label for every reference key.
  • Czech context keys (Page Layout|Orientation vs Orientation), pass-through of unknown text
    (Sheet1!A1), cs-CZ / cs_CZ.UTF-8 / parse("cs").
  • Ribbon renders after switching to Czech, and the choice persists in UiState.
  • Czech keeps canonical formula entry (tests/formula_locale.rs).
  • The UI font draws every Czech accented letter (upper and lower case) without tofu; Czech
    shares the default Han font order.

Czech spells "Data" the same as English, so the Czech probes use "Formulas" -> "Vzorce", where
an English fallback would be caught. No existing assertion was changed or relaxed.

Results on this branch (Linux, Rust 1.99.0, --locked):

  • cargo fmt --all -- --check: clean
  • cargo test --workspace --no-fail-fast: 582 passed, 0 failed, 1 ignored
  • cargo xtask ci: all 7 steps passed (fmt, clippy, test, assets, layers, wasm, parity)
  • Offscreen snapshots (--example snapshot --sample sales --language cs) of Home, Insert,
    Page Layout, Formulas, Data, Review and View: labels render with correct diacritics.
    At the default 1440x900 the last Home group ("Najít a vybrat") is clipped at the right edge;
    pt-BR and ru clip more there, and "Watch Window" is clipped in English too, so this is the
    existing ribbon overflow behaviour, not something this PR changes.

Translation

Translated from the meaning of each English label (clean-room), not from Microsoft Excel's or any
other product's Czech localization. Established Czech spreadsheet terms (list, buňka, vzorec,
Ukotvit příčky, Podmíněné formátování, Ověření dat, Kontingenční tabulka) are used where they are
the ordinary Czech words for the feature. Two large buttons get a line break the English label
does not have ("Kontingenční\ntabulka", "Automatický\nsoučet") so they stay narrow.

The table was produced with AI assistance (Claude).

Review

  • The table was written with AI assistance (Claude) and then checked by a separate, independent
    AI review pass (another model session) against how each key is used in the ribbon, tab bar,
    formula bar and status bar. It found two meaning errors, both fixed in their own commit:
    Enter ("Zadávání" -> "Zadat": the key is both the status-bar mode and the tooltip of the
    confirm button) and Convert to Range ("rozsah" -> "oblast", as "Oblast tisku" already does).
    Ten cosmetic suggestions were left as they are (for example "Sloučit a vycentrovat", "Štětec
    formátu", "Mezisoučet").
  • One open question: the review preferred "Nadpisy" for Headings (row and column headings),
    to keep it apart from "Záhlaví a zápatí" (Header & Footer). I kept "Záhlaví", the common
    Czech word for the row/column headers of a sheet; either is fine and easy to change.
  • The contributor is a native Czech speaker, but the table has not been proofread line by
    line by a native speaker; corrections are welcome.

Notes for the maintainer

🤖 Generated with Claude Code

Losminek and others added 8 commits October 11, 2026 13:35
Add a Czech table with all 266 interface labels (the same key set as
Korean, Russian, Simplified Chinese and Brazilian Portuguese) and
register `cs` in Language: name "Čeština", code `cs`, system tags
`cs-*` / `cs_*`, appended to the end of the switcher. The language
command help, its error text and the snapshot example usage list `cs`.

Like the other ribbon tables, it covers the ribbon, sheet tabs and
widgets; dialogs, menus and messages stay English. Formulas stay
canonical English: Czech uses the English formula locale like every
non-Spanish language.

Translated from the meaning of each English label (clean-room, not from
another product's localization), with AI assistance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The catalog-completeness test requires a non-empty Czech label for
  every key of the reference (Japanese) table.
- Czech context keys: `Page Layout|Orientation` and `Orientation` get
  different labels; unknown text such as `Sheet1!A1` passes through.
- `cs-CZ` / `cs_CZ.UTF-8` system tags and `parse("cs")` resolve to Czech.
- The ribbon renders after switching to Czech, and the choice persists
  in UiState.
- Czech keeps canonical formula entry (`=SUM(1.5,2.25)`), and `=SUMA(1;2)`
  is not accepted.
- The UI font draws every Czech accented letter, upper and lower case,
  without tofu; Czech shares the default Han font order.

Czech spells "Data" as English does, so the Czech checks probe
"Formulas" -> "Vzorce", where an English fallback would be caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Czech joins Russian under "other shipped languages" in ROADMAP.md and
docs/localization-parity.md: 266 ribbon labels (~12%), menus only,
formulas still en-US. Timestamp lines and revision history updated.
Kept separate from the catalog so it can be dropped if the docs are
refreshed upstream.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An independent review of the table found two meaning errors:
"Enter" is both the status-bar mode and the tooltip of the confirm
button next to the formula bar, so "Zadat" fits both places better
than "Zadavani"; "Convert to Range" uses "oblast" (as "Oblast tisku"
does), not "rozsah".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Own entry only, as AGENTS.md describes: credited by the name on my public
GitHub profile (sync_github_name), otherwise by @username.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The only conflict was contributors/people.toml: other contributors appended
their entries at the end of the file in the meantime. All entries kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream added German (de) in the meantime, in the same places where the
Czech language is registered (module list, Language enum and ALL, name,
code, tag parsing, translate, tests, theme font loop, control protocol
list). Both languages kept, German first. contributors/people.toml, the
ROADMAP and docs/localization-parity.md counters: all entries kept.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Two new upstream catalog strings (interface scale control in the View tab).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
h-a-n-a-s-h-i pushed a commit that referenced this pull request Oct 11, 2026
i18n: Czech interface language (cs)

# Conflicts:
#	ROADMAP.md
#	contributors/people.toml
#	crates/ui-egui/src/control.rs
#	crates/ui-egui/src/i18n.rs
#	crates/ui-egui/src/theme.rs
#	docs/localization-parity.md
@h-a-n-a-s-h-i
h-a-n-a-s-h-i merged commit 117be4f into storytold:main Oct 11, 2026
@echelon

echelon commented Oct 11, 2026

Copy link
Copy Markdown
Member

Merged — thank you for the contribution! (I added Czech strings for the other features that landed at the same time, and kept your Interface size/Auto translations.)

If you haven't already, come join us on the ArtCraft Discord: https://discord.gg/artcraft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants