3 minor findings · 3 suggestions
Findings
[minor] · Arrow keys in SegmentedPicker move opposite to the mirrored layout
In RTL layouts, SegmentedPicker selects in the opposite direction to the pressed arrow key; in Send's coin-control picker, this can clear the manual input selection.
Location: qml/pages/MainWindow.qml:21 (head).
Details and suggested fix
MainWindow now enables inherited LayoutMirroring, so the picker's horizontal ListView draws index 0 on the right. The segment handlers still map Left to index - 1 and Right to index + 1, and moveSelection() immediately emits selected. In Send's [Automatic, Manual] picker, pressing Left while focused on the leftmost Manual segment therefore selects Automatic and calls clearSelectedCoins() when selected inputs are active. Pressing Right instead hits the bounds check and does nothing. The switch is visible and recoverable, and transaction review remains required. Reverse the index step when the picker is mirrored and add a mirrored keyboard test.
[minor] · Date formatting ignores the script selected by @latin language tags
Selecting sr@latin, sr@ijekavianlatin or kk@latin passes the raw tag to QLocale, causing word-based dates to use the language's default Cyrillic script instead of the selected Latin script.
Location: qml/localeformat.cpp:26 (head).
Details and suggested fix
buildAvailableLanguages() offers these tags from the pinned Core translation catalog, and install_language forwards them unchanged to LocaleFormat::setLanguage(). The new QLocale(language) construction does not interpret latin or ijekavianlatin as a script identifier, so transaction month names and other word-based dates resolve to the default script. Previously these labels used the system locale. Normalize the modifiers to QLocale::LatinScript before constructing the locale, with a source-language fallback if Qt lacks that script combination, and cover sr@latin in a unit test. This conclusion follows Qt's locale-name contract, not an executed reproduction.
[minor] · Choosing a language also replaces regional date and calendar conventions
Choosing en on an en_GB system now selects US month-first dates, 12-hour time and a Sunday week start, rather than changing only the language of month and weekday names.
Location: qml/localeformat.h:33 (head).
Details and suggested fix
LocaleFormat::locale() constructs the entire locale from the selected tag. shortDateTimePattern then supplies that locale's numeric date and time conventions to transaction details, while ActivityCalendar uses Qt.locale(LocaleFormat.name) for range dates and firstDayOfWeek. These callers previously used Qt.locale(), so a label such as 03/04/26 can change interpretation after selecting a language. Decide explicitly whether regional preferences should survive: if so, retain the system region and numeric conventions while changing word-based names, preserve Qt.locale() for System default instead of reconstructing it from a name, and test English on en_GB. If replacing regional conventions is intentional, document and test that broader policy.
Optional improvements
[suggestion] · The font checks can pass CTest without running their assertions
FontsTests skips the entire class when application fonts are unavailable, while its only CTest invocation forces minimal, allowing the fallback, semibold and baseline checks to remain unexecuted.
Location: test/CMakeLists.txt:49 (head).
Details and suggested fix
bitcoinqml_unit_tests runs with -platform minimal and QT_QPA_PLATFORM=minimal; static builds explicitly import QMinimalIntegrationPlugin. On a minimal backend without application-font support, LoadBundledFonts() cannot register BitcoinCoreSans, and initTestCase() calls QSKIP before any font assertion runs. Add a dedicated font-capable CTest entry, selecting FontsTests through BITCOIN_QML_TEST_CLASSES, using offscreen or minimal:enable_fonts and importing any required static plugin. That entry should fail rather than skip if the bundled fonts cannot load. The general minimal suite can retain its skip. This is a source-established coverage gap, not an observed skip or evidence that the fonts are incorrect.
[suggestion] · The modified Noto font binaries lack a reproducible generation step
The two bundled OTFs have documented metric edits but no checked-in procedure or hashes for reproducing them, making verification of the binary changes unnecessarily manual.
Location: qml/res/fonts/NotoSansArabic-NOTICE.txt:8 (head).
Details and suggested fix
NotoSansArabic-NOTICE.txt identifies v2.013 and describes setting the hhea and OS/2 typo ascender/descender to 969/-241 and line gaps to zero while preserving Windows metrics. The font tests check rendering properties, not whether other binary fields changed. Add a small deterministic script with a pinned tool version and hashed upstream inputs that applies the documented edits, checks the table changes against an allowlist, and records output hashes. This would let reviewers reproduce the shipped binaries without reconstructing the edits. BitcoinCoreSans currently uses the same prose-only convention, so this extends existing practice; nothing here suggests undocumented changes in the new fonts.
[suggestion] · The console-direction decision is split across consecutive commits
3b650f8 adds mirrored console-popup positioning and fixed input alignment, then 3403e62 immediately removes or rewrites both when making the console left to right.
Location: qml/pages/node/CommandConsole.qml:168 at 3b650f8f9ab1 (commit) (commit).
Details and suggested fix
In 3b650f8f9ab120e5b194b2a14ba651d1e45def42 (mirror the layout for right-to-left languages), CommandConsole.qml gains a mirror-dependent autocomplete-popup x expression and horizontalAlignment: TextInput.AlignLeft. In 3403e62d3e40cf19fece04223a2bc2eeb886f2b1 (keep the flow diagram, RPC console and debug log left to right), the popup expression returns to its original form, the alignment becomes placeholder-dependent, and the console sections opt out of mirroring. Move the CommandConsole.qml hunks out of the first commit and introduce the final console changes entirely in the second. This keeps the final tree identical and avoids reviewing positioning that the next commit discards. The first commit has no console test depending on those hunks. This is a review-flow suggestion, not a defect at the PR head.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Interface direction was historically understood as a property of the selected language, not necessarily of the operating system locale. Core’s early RTL discussion explicitly distinguished those two settings.
The base application swaps translators without explicitly setting layout direction. The head additionally derives direction from QLocale(lang) in the same language-installation callback. This follows the historical distinction between the language the user selected and the machine’s regional environment; it is a presentation decision, not a Bitcoin protocol constraint.
Locale-independent Bitcoin amount formatting addresses ambiguity when people communicate amounts internationally. Historical discussion specifically warned that 1,000 and 1.000 can mean opposite things across countries, and that per-user formatting preferences do not remain private to the application because users exchange formatted amounts.
This explains why translating and mirroring the interface need not imply localizing canonical amount strings. The pinned Core formatter, unchanged between dependency base and head, uses a decimal point and locale-independent thin-space grouping. The QML formatter separately identifies canonical strings for amount entry, exports and payment URIs, while allowing localized presentation through another API. This history supports that separation, but does not independently establish a Latin-digit requirement for dates.
Source 1 · Source 2 · Source 3
Localized date presentation has two distinct goals: words should follow the selected application language, while regional conventions can independently determine field order, separators and time format. Earlier QML discussion explicitly sought to avoid mixed-language dates without discarding regional preferences.
The affected transaction labels previously used the default QLocale; the head introduces LocaleFormat, selects a locale from the application language, and normalizes its digits to Latin. The historical sources explain the motivation for aligning month and weekday names with the interface, while showing that language, regional ordering and digit choice are separate policy decisions rather than one indivisible localization requirement.
Basic RTL support was not historically treated as proof of language usability. In the early Core issue, a maintainer reported that basic Hebrew rendering worked but requested specific screenshots and feedback from people who knew RTL languages, noting the development team’s limited language expertise.
This provides context for the distinction between exercising mirrored geometry with -reverselayout and validating Arabic text, typography and mixed-direction content. The former can expose layout behavior without Arabic knowledge; the historical discussion explains why language-aware feedback remains a separate source of evidence. It does not establish the visual correctness of this patch.
Ralph's inferences
The patch distinguishes the direction of surrounding interface controls from the direction of technical content. Preserving left-to-right command output and input-to-output diagram geometry appears intended to keep those representations stable across interface languages.
CommandConsole explicitly disables inherited mirroring because commands and results remain English. TransactionFlow similarly fixes its diagram’s input-to-output direction while retaining translated interface labels. These are application presentation conventions; the inspected evidence does not establish a consensus or protocol requirement for their direction.
Bundling an Arabic fallback trades reliance on host-installed fonts for a controlled glyph supply and more consistent mixed-script metrics. Matching vertical metrics appears intended to integrate Arabic fallback text with the existing Latin typeface while retaining room for tall marks.
The head font loader states that BitcoinCoreSans lacks Arabic glyphs and installs Noto Sans Arabic as its substitute. The bundled notice records matched ascender, descender and line-gap values, with Windows metrics left unchanged to avoid clipping tall marks. These source statements explain the intended typography tradeoff, not demonstrated rendering results.