Skip to content

i18n: keep technical strings English-only (diagnostics panel, verdict line, dev warnings) - #806

Merged
GLinnik21 merged 20 commits into
mainfrom
i18n/english-only
Oct 16, 2026
Merged

GLinnik21 merged 20 commits into
mainfrom
i18n/english-only

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

What

Adds "translate": false for English catalog entries that are technical read-outs: 205 keys now exist only in English (the diagnostics panel browse.diagnostics.*, its verdict line widgets.panel.*, the Cloud-Lab toasts widgets.diagnostics.*, the threadcheck developer warning, and two support-line words in settings.login). Five more dv_* keys that duplicated label() 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

  • Flag is legal only on English entries, only value false. A translator catalog that still holds an English-only key is a build error naming file and key ("delete it").
  • English-only keys get only the plain accessor (and _c when argument-free); no _in variants. Pseudo does not expand them. Plurals and numbers go through a new fixed i18n::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.
  • Deleted browse.diagnostics.dv_base_layer/declare/refuse/supported/unsupported; the two display() methods are gone, callers use label().
  • Descriptions of English-only keys rewritten to stop addressing translators; docs/localization.md and stale "UI language" comments updated; the gutter test now checks English only.
  • Keys deleted from es, be, fr and it by one script; those four diffs are deletions only.

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_language failed: es: "desconocido: nyx no respondió" carries ['ó']. After: plx_platform lib 261 passed, app::diagnostics 44 passed; cargo check --workspace --lib --tests and --lib --no-default-features clean; check-localization, check-language-lists, check-module-layers green. Full gates: CI on this draft.

Stacked on #801.

🤖 Generated with Claude Code

esolitos and others added 16 commits October 15, 2026 23:00
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]>
… 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]>
Base automatically changed from i18n/language-registry to main October 16, 2026 12:43
@GLinnik21
GLinnik21 marked this pull request as ready for review October 16, 2026 12:51
@GLinnik21
GLinnik21 merged commit b88c310 into main Oct 16, 2026
19 checks passed
@GLinnik21
GLinnik21 deleted the i18n/english-only branch 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]>
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