ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #07605
[Bug 1667157] [NEW] Toolkit doesn't change the layout when using an RTL language
Public bug reported:
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 to 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"
** Affects: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1667157
Title:
Toolkit doesn't change the layout when using an RTL language
Status in ubuntu-ui-toolkit package in Ubuntu:
New
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 to 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"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1667157/+subscriptions