** Description changed:

  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"
  
- The RTL locale gets loaded and the strings got translated but the layout
- is still Qt::LayoutDirection(LeftToRight)
- 
  Forcing the RTL layout in src/UbuntuToolkit/ucapplication.cpp makes the
- layoutDirection to change to Qt::LayoutDirection(RightToLeft) :
+ 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"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1667157

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1667157/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to