Toolkit doesn't change the layout when using an RTL language

Bug #1667157 reported by Adnane Belmadiaf
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
New
Undecided
Unassigned

Bug Description

Passing LANGUAGE="ar_MA.utf8" LANG="ar_MA.utf8" to the toolkit gallery doesn't change the layout direction, adding some debug statements gives me :

QGuiApplication::layoutDirection() : Qt::LayoutDirection(LeftToRight)
QLocale::system().name() : "ar_MA"

Forcing the RTL layout in src/UbuntuToolkit/ucapplication.cpp makes the layoutDirection change to Qt::LayoutDirection(RightToLeft) :

QGuiApplication::setLayoutDirection(Qt::RightToLeft);

after that i get the correct value :

QGuiApplication::layoutDirection() : Qt::LayoutDirection(RightToLeft)
QLocale::system().name() : "ar_MA"

Adnane Belmadiaf (daker)
description: updated
Adnane Belmadiaf (daker)
description: updated
Revision history for this message
Yaron (sh-yaron) wrote :

Should also be applied to Hebrew, Urdu and Farsi (Persian).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.