Skip to content

L10n: Czech function names in Tinta Calculo - #37

Merged
StDenis1980 merged 5 commits into
mainfrom
claude/project-thread-xi2v0h
Nov 3, 2026
Merged

StDenis1980 merged 5 commits into
mainfrom
claude/project-thread-xi2v0h

Conversation

@StDenis1980

Copy link
Copy Markdown
Owner

Requested by Denys · project thread

Part 1 of localized function names for Vilna OS (StDenis1980/tintaoffice-web#15). German, French, Italian and Polish follow in separate PRs.

Function tables

  • FormulaLocale now looks up a function table and a pair of boolean spellings for each language. Spanish and Czech share this mechanism: there is no Spanish-only code left in crates/formula/src/input.rs or the parser.
  • New FormulaLocale::Cs with crates/formula/src/czech.rs, which has a row for every built-in function:
    • Names as Czech Excel shows them: SUMA, KDYŽ, SVYHLEDAT, PRAVDA/NEPRAVDA.
    • Czech LOG means LOG10, LOGZ means LOG, and VAR means VARP.
    • Functions that Czech Excel keeps in English keep their English names (SUMIF, XLOOKUP).
  • The Czech interface uses this locale. Typed PRAVDA and NEPRAVDA become booleans in the cs-CZ region.

Fixed test

Verification

  • cargo test -p gridcraft-core, -p gridcraft-formula and -p gridcraft-engine pass. New tests:
    • every localized table round-trips and is unique;
    • Czech formulas compute;
    • each language reads only its own booleans.
  • cargo test -p gridcraft-ui-egui: 959 passed, 2 failed. The two failures are the known missing-glyph tests (column_autocomplete_folds_case_beyond_ascii, language_switch_renders_the_ribbon_and_persists), which also fail on main in this container.
  • cargo clippy -D warnings on core, formula, engine and ui-egui is clean, and cargo fmt --check is clean.

Upstream note

storytold/gridcraft has open PRs for German (storytold#3020), Italian (storytold#1894), French (storytold#2655) and a formula-dialect design (storytold#3049). If one of them merges upstream, the weekly sync will need to reconcile it with this table design.

The Czech names are AI-assisted and still need a native speaker to check them against Czech Excel.


Generated by Claude Code

…lna OS request)

Adds lt.rs (all 1181 interface strings) and Language::Lt (auto from
lt_LT, picker, app.language.set, error-report texts). Czech gains 630
and Romanian 159 missing rows, so cs/ro/lt now cover the whole reference
set that cargo xtask i18n-report checks. Rows shared with the other Tinta
forks reuse their wording; the rest is AI-assisted, pending native review.

Refs StDenis1980/tintaoffice-web#15

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0147pTEsCPeDotgNSoALS5yo
Region gains CsCz (1 234,56 · 05.11.2026 · Kč), RoRo (1.234,56 ·
05.11.2026 · lei) and LtLt (1 234,56 · 2026-11-05 · €). The cs, ro and
lt interfaces now show and read values that way, and formulas take ';'
and the decimal comma (English function names, as their Excel keeps).
Kč and lei typed after an amount give a currency format. Requested by
Vilna OS (tintaoffice-web#15).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0147pTEsCPeDotgNSoALS5yo
Czech formula entry, as Czech Excel shows it (SUMA, KDYŽ, SVYHLEDAT,
PRAVDA/NEPRAVDA; Czech LOG is LOG10). The function table is now one
mechanism per language (Spanish, Czech) instead of Spanish-only code,
so German, French, Italian and Polish can follow. Typed PRAVDA and
NEPRAVDA are booleans in the Czech region. The old Czech test expected
English separators, which #36 already changed; it now checks English
names with Czech separators. AI-assisted names, not yet checked by a
native speaker. For Vilna OS (tintaoffice-web#15).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0147pTEsCPeDotgNSoALS5yo
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.

2 participants