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
Touch seeded packages, 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
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp