Right to Left UI

OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
alisol
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Wed Oct 09, 2013 9:10 am

Right to Left UI

Post 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
jllort
Moderator
Moderator
Posts: 11518
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Right to Left UI

Post 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.
alisol
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Wed Oct 09, 2013 9:10 am

Re: Right to Left UI

Post 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.
jllort
Moderator
Moderator
Posts: 11518
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Right to Left UI

Post 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.
poorya_0
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: Sat May 15, 2021 2:38 pm

Re: Right to Left UI

Post 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:
Attachments
New Bitmap Image (2).jpg
jllort
Moderator
Moderator
Posts: 11518
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Right to Left UI

Post by jllort »

frontend is not prepared for right to left and will not get running in this manner.
Post Reply