Repository navigation
i18n: keep technical strings English-only (diagnostics panel, verdict line, dev warnings) - #806
Merged
Merged
Conversation
Translate all 1,000 catalog messages with context-aware Italian copy, wire Italian into locale selection and message generation, and extend per-language fit and locale tests. Shorten strings identified by host text-fit checks while retaining the complete consent disclosures.
Adds the five settings.playback.hdr_overlay strings main gained after #783 was cut. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…docs Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… line, dev warnings) "translate": false on an English entry removes it from every translator catalog; the compiler rejects a translated copy, emits English-only accessors fixed to i18n::english(), and the panel samples inside render_in_english. The five dv_* keys duplicating label() are deleted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…on; doc fix Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ed shape Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21
marked this pull request as ready for review
October 16, 2026 12:51
GLinnik21
added a commit
to tiper/fin-native
that referenced
this pull request
Oct 16, 2026
main gained a data-driven language registry (plxnative#801) and English-only technical strings (plxnative#806), so the language needs no Rust wiring now: the catalogs move to locales/pt/ with one locales/languages.json row (region pt-PT, excluded_regions ["BR"] so pt-BR keeps the English fallback), and the hand-wired Rust changes from this branch are superseded by main's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What
Adds
"translate": falsefor English catalog entries that are technical read-outs: 205 keys now exist only in English (the diagnostics panelbrowse.diagnostics.*, its verdict linewidgets.panel.*, the Cloud-Lab toastswidgets.diagnostics.*, the threadcheck developer warning, and two support-line words insettings.login). Five moredv_*keys that duplicatedlabel()are deleted outright, so 210 keys leave every translator catalog.Why
Translators should not localize the debug panel: its value is the maintainer reading a photographed report. Translator workload goes from 1005 to 795 keys (about 7018 to 6422 words).
How
false. A translator catalog that still holds an English-only key is a build error naming file and key ("delete it")._cwhen argument-free); no_invariants. Pseudo does not expand them. Plurals and numbers go through a new fixedi18n::english()context (so Belarusian plural(21) no longer prints "21 callback").i18n::render_in_english(the thread-local override is now always compiled) wraps the panel's sample so shared helpers (units, decimals, quality labels) also read English. Its doc comment states the no-process-wide-localized-cache invariant.browse.diagnostics.dv_base_layer/declare/refuse/supported/unsupported; the twodisplay()methods are gone, callers uselabel().Verification
Red first (before implementation): 6 platform tests failed, e.g.
english_only_plural_uses_english_rules: left "21 зваротны выклік", right "21 callbacks";english_only_ignores_pseudo: left "[!! NOTHING dëëmüüxëëd !!]"; catalog tests failed with "locales/es: test.tech: missing";panel_rows_are_english_in_every_languagefailed: es: "desconocido: nyx no respondió" carries ['ó']. After:plx_platformlib 261 passed,app::diagnostics44 passed;cargo check --workspace --lib --testsand--lib --no-default-featuresclean; check-localization, check-language-lists, check-module-layers green. Full gates: CI on this draft.Stacked on #801.
🤖 Generated with Claude Code