Skip to content

Add Polish (Polski) localization - #90

Open
Eales wants to merge 1 commit into
CodeZeno:mainfrom
Eales:add-polish-localization
Open

Add Polish (Polski) localization#90
Eales wants to merge 1 commit into
CodeZeno:mainfrom
Eales:add-polish-localization

Conversation

@Eales

@Eales Eales commented Sep 2, 2026

Copy link
Copy Markdown

Adds Polish (Polski) to the built-in languages, following the steps in src/localization/README.md.

What this adds

A single new file, src/localization/locales/pl.toml:

  • code = "pl", native_name = "Polski", locale_patterns = ["pl"], order = 12 (the next unused order)
  • All 52 [strings] keys and all 377 [translations] keys translated, kept in the same order as en.toml
  • No Rust source changes, and no windows_font_name / windows_font_file: Polish diacritics (ą ć ę ł ń ó ś ź ż) are already covered by the Segoe UI face loaded in src/ui/theme.rs, the same as for the existing Latin-script locales

Translation notes

  • Compact widget labels are kept short so the taskbar layout is unchanged: session_window = "5h", weekly_window = "7d", and the d / h / m / s suffixes, matching de, es and pt-BR. Spelled-out Polish forms (godz., min) would widen the widget.
  • Ambiguous UI terms were resolved against their call sites rather than translated blind, for example Host (kept, as in every other locale), TrackTor (the data-bar track), GuidePrzewodnik (the expression-helper reference card), ReferenceOdniesienie (the placement reference target) and DisplayEkran (used both as the settings section and as the display index in reference_target_name).
  • Product names (Claude Code, Codex, Antigravity, OpenCode, Cursor) are left untranslated.

Verification

I do not have a Windows Rust toolchain on this machine, so cargo build was not run. Instead I re-implemented every locale assertion from build.rs and every locale test from src/localization/mod.rs as a checker and ran it over all 13 locale files, including this one:

  • required and allowed top-level keys; windows_font_name / windows_font_file present together or not at all
  • order non-negative, unique and contiguous from zero across all locales
  • locale patterns non-empty, trimmed, lowercase, globally unique, and each code recognized by its own patterns
  • [strings] and [translations] key sets identical to en.toml, no empty values, and identical placeholder sets per key
  • every_non_english_locale_translates_the_primary_dashboard_workflow: all 59 essential keys differ from their English source in pl.toml
  • generated_translation_catalogues_are_sorted_and_complete: catalogue size equal to English
  • file encoding matches the other locales (UTF-8 with BOM, CRLF)

All checks pass. A cargo build on CI would be the final confirmation.

https://claude.ai/code/session_01Vq1HaG1m2MvKKebqe44QT7

Adds src/localization/locales/pl.toml following the process in
src/localization/README.md: locale code "pl", native name "Polski",
locale_patterns ["pl"], and the next unused order (12).

Every key in [strings] and [translations] is translated and kept in the
same order as en.toml, so the key sets, placeholders ({name}, {version})
and catalogue size match the English canonical file. Compact widget
labels stay short (5h / 7d, d/h/m/s) so the taskbar layout is unchanged.
No Windows font metadata is needed: Polish diacritics are covered by the
Segoe UI face the app already loads.

Claude-Session: https://claude.ai/code/session_01Vq1HaG1m2MvKKebqe44QT7
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.

1 participant