Printrun icon indicating copy to clipboard operation
Printrun copied to clipboard

On 2.0.0 UI completly broken on RTL locals

Open thebestnom opened this issue 4 years ago • 9 comments

On 2.0.0 UI completly broken on RTL locals

changing the local to english in the code works

example image

thebestnom avatar Aug 01 '21 21:08 thebestnom

Looks good to me. Yes, it is unusable, but isn't this the idea of RTL by design? :grin: How do you switch to RTL?

volconst avatar Aug 04 '21 08:08 volconst

I didn't switch, it does this by default on RTL pcs (the get systemLocale) (I use hebrew) (Hence RTL locale and not switching to RTL 😅)

thebestnom avatar Aug 04 '21 09:08 thebestnom

@thebestnom Can you elaborate what you changed? I am having the same issue.

BorisKozo avatar Jun 18 '22 13:06 BorisKozo

OK it is more broken than I initially thought. I tried to put a locale En-il and the application won't even start. With the RTL UI some of the buttons are broken and it makes the application unusable. Currently I set my computer locale to En-Uk just to be able to use it.

BorisKozo avatar Jun 19 '22 06:06 BorisKozo

Good morning, purely out of interest what OS and language do you use?

DivingDuck avatar Jun 19 '22 06:06 DivingDuck

Windows 10, everything is English except the locale which is Hebrew (Israel). If I set the locale to English (Israel) it will crash on start. Now I set it to English (United Kingdom) and everything works normal.

BorisKozo avatar Jun 19 '22 07:06 BorisKozo

For the crash issue I maybe can help you. This seems to be a known problem with wxPython. In case you are able the compile pronterface at your own you can use the latest developer snapshot version of wxPython. Replace the 4.1.x version via pip install:

pip install -U --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython --use-deprecated=html5lib

Alternatively you can test the interim version from my test branch: https://github.com/DivingDuck/Printrun/actions/runs/2525453711

DivingDuck avatar Jun 19 '22 22:06 DivingDuck

@DivingDuck Thank you for your help. I am currently OK with keeping my computer at UK locale but I hope the whole locale detection will get fixed. We don't expect the UI to work well in RTL but also don't go to that mode at all.

BorisKozo avatar Jun 20 '22 20:06 BorisKozo

Btw, there is a way to fix with changing the code without changing the whole system

thebestnom avatar Jun 20 '22 20:06 thebestnom