1 minor finding · 3 suggestions
Findings
[minor] · kk@latin fallback does not match its translated catalog
On Qt builds without kk_Latn data, selecting the bundled kk@latin catalog gives English date names alongside translated Kazakh strings; that Qt-data condition was not verified here.
Location: qml/applocale.cpp:49 (head).
Details and suggested fix
LanguageLocale() falls back to English when Qt cannot provide the requested script, with the rationale that untranslated text is English. But this branch can follow a successful catalog load. The embedded bitcoin_kk@latin.ts contains translations such as Көшіру and Мекенжайды көшіру, in Cyrillic Kazakh despite its tag, and the language selector offers that catalog. English month and weekday names therefore do not match its translated strings. Prefer the base-language kk locale for this catalog's missing-script fallback, which matches its Cyrillic content, and update missingScriptFallsBackToEnglish accordingly.
Optional improvements
[suggestion] · QML Activity tests retain obsolete date formats and bypass language installation
The QML Activity fixture still asserts obsolete mock date formats and bypasses translator installation, leaving the production model-to-ListView language-refresh path uncovered despite the new C++ role and notification tests.
Location: test/qml/qml_tests_main.cpp:4479 (head).
Details and suggested fix
The harness registers MockActivityFilterProxyModel as ActivityFilterProxyModel. Its date roles retain the fixed patterns, and the grouping test still expects 10:03 PM and Sep 14, 10:03 PM, independently of the production formatting change. The new calendar test assigns Qt.uiLanguage directly rather than exercising QmlTranslations::install() and the application's languageChanged connection. Meanwhile, languageChangeReformatsDateLabels reads real-proxy roles and checks dataChanged, but does not verify that an existing section delegate updates. Align the mock with the production formatting helpers and derive regional expectations from Qt.locale(). Add a real-proxy ListView fixture that follows System default, an explicit language, and the return to System default through the production-equivalent installation wiring, asserting that existing section labels update without recreating the view.
[suggestion] · Application event filters repeat date refreshes during catalog replacement
Each catalog replacement can refresh every Activity row separately; a single installation-complete notification would coalesce those updates, although no slowdown was measured.
Location: qml/models/activityfilterproxymodel.cpp:72 (head).
Details and suggested fix
Each ActivityFilterProxyModel installs an application-wide event filter and emits a full-range dataChanged for three roles on every application LanguageChange. QmlTranslations::install() sets the new names locale and then separately removes and installs both catalogs, so one language selection can notify every proxy several times. Replace these per-proxy filters with one language-installation-complete notification emitted after both catalogs have been replaced. Connect the proxies to that notification with QObject lifetime management. Emit it even when the names locale is unchanged, since the translated Pending section label can still change.
[suggestion] · The System default catalog-selection fix is split across two commits
The separate catalog searches introduced in 555bd18 are corrected only in the activity-date commit 85fc1d0, obscuring a translator-policy change that is already correct at the PR head.
Location: qml/applocale.cpp:20 at 555bd18d53cc (commit) (commit).
Details and suggested fix
In 555bd18d53ccb7438c4ca67c48dfb695d2db09c8, LoadSystemLanguage() searches preferred languages independently for bitcoin and bitcoin_qml. With en-US followed by es-ES, Core can load bitcoin_en while QML continues to bitcoin_qml_es. The activity-date commit 85fc1d06318944c6b33702736cbb44946b37453a introduces the shared search and systemDefaultUsesOneLanguageForBothCatalogs, but its message does not explain this translator-selection correction. Move the shared search, explicit ui_languages overload, restore guards and translation-policy portion of that test into 555bd18d53ccb7438c4ca67c48dfb695d2db09c8. Leave the final QCOMPARE(QmlNamesLocale().language(), QLocale::English) assertion in 85fc1d06318944c6b33702736cbb44946b37453a, where that API is introduced. This keeps the date dependency later while making the System default policy independently reviewable without changing the final tree.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
“System default” is expected to select an available translation for the system language, not to mean untranslated English. The historical report explicitly distinguishes missing translations from failing to load translations that already work under an explicit language selection.
Issue #1006 records the startup → explicit Spanish → System default workflow. The pinned base removes both translators for an empty language setting; the head introduces system-UI-language lookup in QmlTranslations. This history establishes the user-facing meaning of the empty setting without establishing the correctness of any particular matching algorithm.
The requested localization policy separates interface language from regional conventions: month names should follow the selected application language, while date order, number separators, and 24-hour time preferences remain regional.
Issue #1023 describes Dutch activity headings remaining Dutch after selecting English and explicitly asks to preserve regional preferences. This directly explains the head's separate names locale and regional locale, rather than treating an application-language change as a global locale change.
Changing translation catalogs alone was understood to be insufficient for activity date labels: the historical discussion identifies both independent locale-based formatting and missing model refresh notifications.
The inspected issue explains that reloading translators and calling engine->retranslate() did not update the activity model's date-formatting locale or notify its consumers. That provides the historical reason for addressing both QML language-dependent bindings and C++ model-role refreshes in the affected path.
Earlier upstream translatability work explicitly left date/time localization outside its scope, describing locale-insensitive formatting as longstanding behavior rather than articulating a requirement to preserve it.
The base activity model contains fixed date and 12-hour time patterns. The upstream record cautions against interpreting inherited formatting as a deliberate compatibility or protocol constraint; however, it does not establish the origin of these particular QML patterns.