Page 1 of 1

Right to Left UI

PostPosted:Wed Oct 09, 2013 9:13 am
by alisol
Hello Guys,
I want to use openkm for farsi users and need to change direction is any solution developed yet or i have to do it myself?
Thanks

Re: Right to Left UI

PostPosted:Thu Oct 10, 2013 7:54 am
by jllort
There's a lot of work to do it from source code. GWT supports right to left but that means should change all widgets to take in consideration that case:
http://googlewebtoolkit.blogspot.com.es ... ional.html

I think for textbox and input this is automatically detected by application ( GWT ) but in case of labels, lists, should specify it.

I do not know if could be solved in easy way with an extra table field in translations to rotate the test. The problem is that you write ABC in translation and should appear CVA, that could help in some way. Or if we got a table column the text mandatory should appear at right corner of the column.

The change to automatically rotate is really easy to be implemented.

Re: Right to Left UI

PostPosted:Thu Oct 10, 2013 8:47 am
by alisol
Yes, I know about GWT but i want to change the main ui for example change position of left panel to right and ...
do you have any document about it and if there isn't any document what is your suggestion to do it.
And finally if i done it, how can i submit it to you for being a standard feature.

Re: Right to Left UI

PostPosted:Fri Oct 11, 2013 7:42 pm
by jllort
1- Make minimal change, in Main.java
create var
Code: Select all
boolean rightToLeft = true;
create static method
Code: Select all
public boolean isRightToLeft() {
   return rightToLeft;
}
2- Select only one Widget of all UI and then apply some change
and use Main.get().isRightRoLeft() in the code to change

When you got it, make a patch with eclipse, the options are Team -> Create patch ( select to file, and select project type ) and send to us to valorate the viability of the change in other UI parts.

Re: Right to Left UI

PostPosted:Sat May 15, 2021 2:52 pm
by poorya_0
hi
where i use this "Main.get().isRightToLeft()"?
I used it in panel/Main.java but no change observed.
do you any changes for support right to left languages by default? like this:

Re: Right to Left UI

PostPosted:Thu May 20, 2021 2:36 pm
by jllort
frontend is not prepared for right to left and will not get running in this manner.