mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:42:38 +00:00
qml: list only translated languages in the language picker #1147
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!1147
Loading…
Reference in a new issue
No description provided.
Delete branch "language-coverage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The language picker lists all ~100 bitcoin-qt translations, but the QML app only has a translation for Spanish. Picking any other language changes nothing.
This PR:
bitcoin_qml_<tag>.qm, plus "System default".cmake/script/TranslationCoverage.cmake) and shows "Partially translated (N%)" under any language below 90%.bitcoin_qml.tsandbitcoin_qml_es.tsto the current interface. The template had 522 strings; it now has 1,494.🟠 Minor · The picker hides an active language without a QML catalog
A saved Core-only language such as
deremains 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).
🔵 Suggestion · Coverage assertions exercise only missing-key fallbacks
Source inspection shows that
availableLanguagesHaveAppTranslations()would still pass with empty or malformedtranslation_coverage.json, leaving generated percentages and the 90% cutoff unchecked.Location: test/test_options_model.cpp:3433 (head).
Review coverage was incomplete.
Reviewed:
b2ce6ac7dfea· Review reportI tested this on Windows at
b2ce6acand noticed two things in Display settings.Theme selection after changing the language. With
Darkselected, I opened Display > Language and choseEspañol. The app stayed dark and the theme picker highlightedClaro(Light). I'd expectOscuro(Dark) to stay selected. I also saw the reverse: withOscurocorrectly selected, switching back toSystem defaulthighlightedLightwhile the app stayed dark.Saved German after upgrading. I chose
Deutschin the base build, then opened the same profile with this PR. Display still showedDeutsch, and the saved setting still loaded German translations for some Bitcoin Core messages. In the language picker,Deutschwas missing and no language was marked as selected. After tryingEspañol, I couldn't switch back to German. Could we show the saved language as selected and give users a way to return to it after trying another language?