Add Polish (Polski) localization - #90
Open
Eales wants to merge 1 commit into
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Polish (
Polski) to the built-in languages, following the steps insrc/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)[strings]keys and all 377[translations]keys translated, kept in the same order asen.tomlwindows_font_name/windows_font_file: Polish diacritics (ą ć ę ł ń ó ś ź ż) are already covered by the Segoe UI face loaded insrc/ui/theme.rs, the same as for the existing Latin-script localesTranslation notes
session_window = "5h",weekly_window = "7d", and thed/h/m/ssuffixes, matchingde,esandpt-BR. Spelled-out Polish forms (godz.,min) would widen the widget.Host(kept, as in every other locale),Track→Tor(the data-bar track),Guide→Przewodnik(the expression-helper reference card),Reference→Odniesienie(the placement reference target) andDisplay→Ekran(used both as the settings section and as the display index inreference_target_name).Claude Code,Codex,Antigravity,OpenCode,Cursor) are left untranslated.Verification
I do not have a Windows Rust toolchain on this machine, so
cargo buildwas not run. Instead I re-implemented every locale assertion frombuild.rsand every locale test fromsrc/localization/mod.rsas a checker and ran it over all 13 locale files, including this one:windows_font_name/windows_font_filepresent together or not at allordernon-negative, unique and contiguous from zero across all localescoderecognized by its own patterns[strings]and[translations]key sets identical toen.toml, no empty values, and identical placeholder sets per keyevery_non_english_locale_translates_the_primary_dashboard_workflow: all 59 essential keys differ from their English source inpl.tomlgenerated_translation_catalogues_are_sorted_and_complete: catalogue size equal to EnglishAll checks pass. A
cargo buildon CI would be the final confirmation.https://claude.ai/code/session_01Vq1HaG1m2MvKKebqe44QT7