mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:42:38 +00:00
qml: add Arabic and right-to-left layout support #1148
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!1148
Loading…
Reference in a new issue
No description provided.
Delete branch "rtl-arabic"
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?
When the app language is Arabic, the interface now mirrors right to left and is translated into Arabic.
LayoutMirroringfor right-to-left languages. Shared controls also mirror the padding, positions, menus, split view and page transitions that Qt doesn't flip automatically. The left and right caret icons flip. The transaction flow diagram, RPC console and debug log stay left to right.bitcoin_qml_ar.ts. 1,481 of 1,489 strings are translated. The other 8 are RPC console output and stay in English.-reverselayoutoption mirrors the layout in any language.More screenshots
🟠 Minor · Arrow keys in
SegmentedPickermove opposite to the mirrored layoutIn RTL layouts,
SegmentedPickerselects 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).
🟠 Minor · Date formatting ignores the script selected by
@latinlanguage tagsSelecting
sr@latin,sr@ijekavianlatinorkk@latinpasses the raw tag toQLocale, causing word-based dates to use the language's default Cyrillic script instead of the selected Latin script.Location: qml/localeformat.cpp:26 (head).
🟠 Minor · Choosing a language also replaces regional date and calendar conventions
Choosing
enon anen_GBsystem 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).
🔵 Suggestion · The font checks can pass CTest without running their assertions
FontsTestsskips the entire class when application fonts are unavailable, while its only CTest invocation forcesminimal, allowing the fallback, semibold and baseline checks to remain unexecuted.Location: test/CMakeLists.txt:49 (head).
🔵 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).
🔵 Suggestion · The console-direction decision is split across consecutive commits
3b650f8adds mirrored console-popup positioning and fixed input alignment, then3403e62immediately removes or rewrites both when making the console left to right.Location: qml/pages/node/CommandConsole.qml:168 at 3b650f8f9ab1 (commit) (commit).
Review coverage was incomplete.
Reviewed:
d72c4d9aa262· Review reportI ran into this on
d72c4d9while testing Send with-lang=en -reverselayout. With one input selected andManualfocused on the left, pressing the left arrow switches toAutomaticon the right. When I switch back toManual, the input I picked is gone.Could
SegmentedPickermake the arrow keys follow the visual order in RTL layouts? In this case, there's no segment to the left ofManual, so I'd expect the keypress to keepManualactive and preserve the selected input.