Bug 365728

Summary: Krita insist to open as RTL
Product: [Applications] krita Reporter: roy_barina
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: First open
Language inconsistent
Current application language

Description roy_barina 2016-07-15 22:36:39 UTC
Krita insist to open as RTL making some controls to misbehave (like  layer buttons on top of each other) 

Reproducible: Always

Steps to Reproduce:
A.
  1. Install Krita
  2. Open it
B.
  1. Change display language to something else 
  2. restart Krita
  3. change back to 'American English'
  4. restart Krita

Actual Results:  
no matter which lang you choose, Krita will open as RTL  rather than LTR.

Expected Results:  
For 'American English' the display should be LTR

I am runing  Krita on windows 7 Ultimate x64 with English as default display language and Hebrew as locale settings
Comment 1 roy_barina 2016-07-15 22:41:47 UTC
Created attachment 100119 [details]
First open

Every time I open Krita
Comment 2 roy_barina 2016-07-15 22:43:30 UTC
Created attachment 100120 [details]
Language inconsistent

Some menus show other language no relating to the language chosen in the settings
Comment 3 roy_barina 2016-07-15 22:44:20 UTC
Created attachment 100121 [details]
Current application language
Comment 4 Halla Rempt 2016-07-16 10:48:50 UTC
Hi Roy,

I'm sorry, but I haven't been able to reproduce this issue yet. When I select Hebrew, Krita doesn't even have an RTL layout by default. I'm not sure we even set the layout direction ( http://doc.qt.io/qt-5/qguiapplication.html#layoutDirection-prop) when an RTL language is selected, so Qt might be trying to divine it automatically from some system setting that I haven't discovered yet.
Comment 5 roy_barina 2016-07-16 16:02:08 UTC
Try to create a virtual machine from an international Windows 7 x64 dvd, and keep the language (English) + set the location to Israel and locale settings to hebrew (so it'll present NiS instead of USD and dd/mm/yyyy date format etc.)
This is not the first time I've ran into that problem, it was on 2.9 and 3.0 RC1 too
And there's that same problem with other open source program too (such as LMMS and LibreOffice)
Maybe a new feature to force layout direction will be good (I think it will be better :) )
Comment 6 Halla Rempt 2016-08-12 12:06:41 UTC
Well, in that case I don't think it's actually a bug in krita itself. It must be in the underlying frameworks we use. Though lmms and libreoffice don't use Qt, which means it might be even deeper in the stack. But it's not something that we can control ourselves!
Comment 7 roy_barina 2016-08-14 06:24:07 UTC
Thanks.
A RTL-LTR support would be a good feature to have.. I'll try to understand why this is happens in my system
I'll update here on any changes :)