1 minor finding · 1 suggestion
Findings
[minor] · The picker hides an active language without a QML catalog
A saved Core-only language such as de remains active and appears on Display, but the picker no longer represents it, marks no selection, and cannot restore it after the user switches away.
Location: qml/models/options_model.cpp:744 (head).
Details and suggested fix
buildAvailableLanguages() now enumerates only bitcoin_qml_*.qm, but readSnapshot() still accepts saved and legacy bitcoin-qt language tags without normalizing them. A migrated German setting therefore remains de: the Display row labels it, but the picker has neither a matching row nor a check mark or “Selected” accessible description. At base, de appeared in the picker. For an editable saved setting, choosing another language also removes the GUI route back to the previous value. That value still has an effect because install_language() loads bitcoin_de.qm for shared Core messages. Handle unlisted saved values explicitly, for example by normalizing them consistently in both the model and translator loading. These consequences follow from the bindings; rendering was not checked at runtime.
Optional improvements
[suggestion] · Coverage assertions exercise only missing-key fallbacks
Source inspection shows that availableLanguagesHaveAppTranslations() would still pass with empty or malformed translation_coverage.json, leaving generated percentages and the 90% cutoff unchecked.
Location: test/test_options_model.cpp:3433 (head).
Details and suggested fix
The coverage assertions check that the resource exists, that the empty tag produces no note, and that de produces “Partially translated (0%)”. An empty parsed object satisfies all three because languageCoverageNote() defaults missing keys to zero. Thus a broken generator or mismatched JSON keys could label every available language as 0% without this test detecting it. The QML stub's fixed 34% value does not exercise the calculation either. Add a small catalog fixture covering finished, nonempty-unfinished, empty-unfinished, numerus and obsolete entries, and assert the script's JSON output. Also exercise a loaded language value and controlled values at 89% and 90%, so resource lookup and the display boundary are checked without depending on Spanish translation progress.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Translation completeness has historically been treated as a usefulness tradeoff, not simply a question of whether a language file exists. In 2013, contributors explicitly considered dropping languages below some translated percentage; Wladimir van der Laan observed that sufficiently sparse translations might be no better than having none.
This directly contextualizes distinguishing selectable languages from meaningfully translated interfaces. The PR requires an app-specific catalog and labels incomplete translations rather than excluding them by percentage. The historical discussion establishes the concern, but not that particular resolution or cutoff.
Bitcoin Core deliberately leaves internal errors, logs, and RPC-interface messages untranslated so diagnostics remain consistent across users and easier to find through search engines. Ordinary user-facing GUI messages are intended to be translated.
The new languageCoverageNote() comment explicitly leaves room for English RPC-console output. Historical policy supports the distinction between localized interface text and stable technical diagnostics; it does not imply that any particular percentage measures a complete user experience.
Translation maintenance is constrained by translator workload and release timing. The original strings policy discourages unnecessary variations of messages and prescribes pre-release string freezes. The pinned translation-process document explains that periodic catalog updates give translators time and avoid translation-related merge conflicts.
The PR refreshes an outdated QML template and Spanish catalog. This history explains why translation coverage can lag interface development and why synchronizing the catalog matters when measuring completeness: missing source messages and genuinely translated messages are different quantities.
Ralph's inferences
The application has two distinct translation surfaces: shared C++/Widgets strings and QML-app-specific strings. Consequently, the availability of a Core language catalog does not by itself establish translation coverage for the QML interface.
At the comparison base, the picker enumerates bitcoin_.qm while explicitly skipping qml_ tags, and the build embeds Spanish as the sole explicitly configured QML translation. The runtime loader installs the two catalog families separately. The PR changes enumeration to bitcoin_qml_*.qm while retaining Core catalogs, aligning selectable languages with the app-specific translation surface without discarding shared-layer translations.
The new percentage is a catalog-content indicator, not an assessment of translation accuracy, review status, or the importance of untranslated workflows.
The script computes an unweighted share of active translation entries, subtracting entries matching its empty-unfinished patterns and excluding obsolete or vanished entries. Nonempty unfinished text therefore contributes to coverage. Read alongside the historical policy's distinction between interface text and technical diagnostics, this explains why the label is informational rather than proof that every user-facing action is localized.
Unresolved disagreements
The inspected 2013 discussion leaves open whether low-coverage languages should be removed and what minimum percentage would make them useful; it asks about other projects' thresholds without recording a resolution.
This is historical context for the choice between retaining partial translations with a warning and hiding them. It should not be read as an established policy requiring exclusion, or as precedent for the PR's 90% labeling threshold.