3 minor findings · 2 suggestions
Findings
[minor] · Coin rows and saved payment requests no longer show the year
The new yearless patterns remove information previously shown by ShortFormat, leaving address-grouped coins and saved payment requests without a displayed year.
Location: qml/components/CoinsList.qml:289 (head).
Details and suggested fix
Both coin receipt dates and the saved request’s Created %1 label now use qsTr("MMM d, h:mm AP") instead of Locale.ShortFormat. Neither the source pattern nor its Arabic translation includes a year or adds one for older dates. When coins are grouped by address, CoinsListModel::groupTitle returns only the address, so the heading cannot supply the missing year. The request card likewise has no separate year display. Dates from different years therefore become indistinguishable when their remaining fields match. Include yyyy in both patterns, as TransactionDetail.qml does, and add previous-year cases for address-grouped coins and saved requests.
[minor] · Retained Activity date labels keep the previous language
Changing the language with a wallet open can leave retained Activity date labels in the old language while newly created delegates use the new one.
Location: qml/models/activityfilterproxymodel.cpp:103 (head).
Details and suggested fix
ActivityFilterProxyModel::data now formats DateTimeLabelRole and SectionLabelRole with the application language. However, LocaleFormat::setLanguage emits localeChanged without notifying these model roles, and engine->retranslate() does not refresh the delegates’ model-role bindings. The Activity list stays instantiated while Settings is shown, so its existing labels can remain stale. Ordinary confirmation changes do not repair this because reconciliation reports only changed roles; the proxy refreshes its derived labels on timestamp, pending-state or grouping changes. Connect LocaleFormat::localeChanged to a notification over the existing rows for the derived date and section roles, following setGroupBy, and test a language switch after populating the model.
[minor] · Untranslated date patterns discard regional order and clock conventions
For users whose regional conventions differ from the US-style fallback, transaction details, coin rows and payment requests now lose their previous date order and clock format; only Arabic currently translates the new patterns.
Location: qml/pages/wallet/TransactionDetail.qml:129 (head).
Details and suggested fix
These screens previously used toLocaleString(Qt.locale(), Locale.ShortFormat), preserving regional conventions such as day-first dates and a 24-hour clock. They now pass fixed patterns containing MMM d and h:mm AP to LocaleFormat; using a localized QLocale changes the names but does not override those explicit fields. System-default sessions and languages without translated patterns therefore receive the US-style fallback. Activity already used fixed patterns, but extending that policy here changes previously regional screens. Preserve a locale-derived ShortFormat fallback when no translated pattern exists, then apply latinDigits, so selecting localized date names does not also discard regional formatting.
Optional improvements
[suggestion] · The Arabic layout test does not verify catalog loading
The functional test would still pass with a missing or misnamed Arabic QML resource because layout direction does not depend on translator loading.
Location: test/functional/qml_test_settings_display.py:111 (head).
Details and suggested fix
test_language_direction selects Arabic and checks only displayLanguageRow.mirrored. In install_language, a failed QTranslator::load is ignored and QLocale(lang) still causes the layout to mirror. Consequently, the new glob-based translation resource wiring could omit bitcoin_qml_ar.qm without failing this test. After selecting Arabic, also assert that displayLanguageRow.title equals the catalog’s اللغة, following the neighboring Spanish test. This checks that the application-specific catalog actually loaded, not merely that direction changed.
[suggestion] · The -reverselayout help gives the wrong direction for RTL languages
The help describes mirroring as for an RTL language, but the flag reverses the selected language’s direction and therefore makes Arabic layouts LTR.
Location: qml/guiargs.cpp:14 (head).
Details and suggested fix
SetupQmlGuiArgs describes -reverselayout as “Mirror the layout as for a right-to-left language”. However, install_language selects RTL using rtl != reverse, so -lang=ar -reverselayout produces an LTR layout. Reword the help to “Reverse the layout direction of the selected language” so testers can select the intended direction without having to inspect the implementation.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
RTL support was historically understood as a property of the selected language, not merely the operating-system locale. Maintainers also distinguished basic framework support from language-correct presentation that requires specific feedback from people familiar with RTL languages.
The base application installed translators without explicitly setting layout direction; the head derives direction from QLocale(lang). The 2012 discussion explains why selecting an RTL translation and obtaining a correctly directed interface are separate concerns. Its request for language-specific screenshots also explains why source-level mirroring alone cannot establish presentation quality.
Source 1 · Source 2 · Source 3
Bitcoin GUI amount formatting deliberately used locale-independent decimal notation and thin-space grouping to avoid confusing grouping separators with the decimal marker. Historical discussion also exposed the usability cost when input validation follows a different locale convention from displayed amounts.
This provides context for preserving technical numeric conventions while translating and mirroring surrounding controls. The application's unchanged canonical QmlBitcoinUnits::format path uses Latin digits, a decimal point, and thin-space grouping, and its amount-input patterns use a point. This is a GUI formatting convention, not a consensus rule; the same application also has a separate locale-aware formatForDisplay path.
Source 1 · Source 2 · Source 3 · Source 4
Localization historically separates ordinary user-facing explanations from technical diagnostics. The stated tradeoffs include translator workload, misleading literal translations of internals, and retaining messages that users can search for when troubleshooting.
This explains the distinction between translated console/log controls and technical content that remains English and left to right. The exact pinned Core translation policy explicitly excludes internal errors, log messages, and RPC messages from translation, and states the searchability rationale. The historical command-line-help discussion supports that general boundary, but does not itself prescribe QML mirroring behavior.
An earlier same-repository language/date proposal explicitly separated application language from regional date conventions: words should follow the selected language, while regional ordering and numeric times could remain tied to the system locale. It also identified mixed-language literals embedded in CLDR date patterns as a constraint.
This identifies a pre-existing design tension relevant to LocaleFormat: linguistic consistency, regional familiarity, and numeric representation are independent choices. The pinned base used the system QLocale for transaction month names; the head introduces an application-language locale and digit normalization. The earlier proposal is evidence of the tradeoff, not proof that its implementation is present in this base.
Translation coverage and translation trustworthiness have historically been separate concerns. A reviewed-only import was proposed to exclude questionable translations, but an experiment showed that doing so would remove most language files because their strings had not been marked reviewed.
This explains why a high translated-string count alone does not settle linguistic quality, while requiring reviewed-only material has an accessibility cost through English fallback or loss of language coverage. It is relevant context for adding a large Arabic catalog, without assessing that catalog's correctness.
Source 1 · Source 2 · Source 3 · Source 4
Ralph's inferences
The new date formatter appears to separate linguistic localization from digit choice: it formats with the selected language's QLocale, then replaces that locale's digits with Latin digits. Consistency with the application's canonical numeric notation is a plausible explanation, but the inspected history does not establish this as a prior date-formatting policy.
This characterizes the actual tradeoff introduced by LocaleFormat without extending the historical amount-formatting rationale into an undocumented universal rule for dates, addresses, or block heights.
Bundling an Arabic fallback addresses dependence on host-installed glyph coverage while retaining the existing Latin typeface. The font notice describes a second constraint: matching Arabic and Latin baselines without changing the Windows metrics used for tall marks.
The head explicitly notes that BitcoinCoreSans lacks Arabic glyphs and registers Noto Sans Arabic as a substitute. The notice records the vertical-metric modifications. These explain the font integration's intent, but do not establish actual rendering or clipping behavior across platforms.
Unresolved disagreements
The inspected technical-jargon discussion did not establish a universal rule for retaining English terminology. Participants proposed untranslated word lists, but also argued that terminology is language- and culture-dependent and that removing words from translatable sentences can deprive translators of context. Glossaries and language-specific guidance were discussed; the issue later closed without a general policy resolution in the inspected record.
This cautions against treating English RPC/log conventions as a reason to leave ordinary Arabic wallet terminology untranslated. Technical tokens and natural-language explanations have different constraints, and the historical record leaves terminology choices dependent on linguistic context.