Closed solomax closed 9 years ago
currently the additional "rtl" CSS is very simple:
.column { float: right !important; } .dragbox-toggle { float: right !important; } .dragbox-title { float: right !important; } .dragbox-actions { float: left !important; }
I've recently incorporated the Dashboard into Appfuse (wicket version) and completely adapted in Persian. I mean I built a wicket Jalai calendar, full rtl support along with Persian translation. I also added a web chat component for my user by candy and openfire which all are RTL compatible. you can find my work at sarmayeh360.com (a site for auto analyzing stock market by AI)
Sure. I am interested. I don't have experience with rtl but I will try to help.
@malaki12003 Can you give us more information about your "rtl" approach?
Here is the code I'm currently using: https://svn.apache.org/repos/asf/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/menu/MenuPanel.java
renderHead method
I will try to implement rtl support in this mode:
What do you think? Makes sense?
I have implemented it same way :)
Thanks solomax. I see now that your approach is per session and my approach is per application.
@solomax Do you see an inconvenient in my implementation (per application)? Is it ok for you?
Our users has own language, so I need per session approach :)
@solomax, as you said rtl approach is not big deal, Regardless I am not so expert in CSS, I created 3 css files: the first for rtl, the second for ltr and the last for common. I set a Locale variable in session that lets me to select which css (rtl or ltr) should be import in my template page. I used firebug as a amazing debug tool to find right css selectors and attributes in a try&error approach. I just utilized following attributes: float, direction, and text-align. Keep in mind you should changed direction of everything as they are looking in front of a mirror. Calendars & Dates are a bit challenging. for rtl language you can store all date in Gregorian form, and only convert it into suitable form in presentation layer.
As you can see from the CSS upper here, I created 1 additional CSS file (which need to be included AFTER main one) this CSS overwrites necessary CSS properties
I committed some code that try to resolve this issue. I will update wicket-7 branch.
You can use RTL support per application or per session.
Per application: DashboardSettings.setRtl(true)
Per session: DashboardPanel.setRtlModel(IModel
@solomax Can you test the new feature? I updated wicket-7 branch because I know that you use wicket-7 in openmeetings
I just have checked it works as expected!
could you please change setRtlModel(IModel) to "return this" for chaining? When do you plan to release this?
I committed the modification on github. If you think that everything is ok I could do a release today.
Thanks a lot! Will wait for release, then will test one more time
I wish you continues this way so that the dashboard can support Unicode numbers in addition different Calendar systems.
I just released a new version. Please wait some time for propagation on Maven Central Repository.
@decebals why don't u setup a live demo. Take a look at "openshif" as a free cloud hosting for java. It is so easy and I am sure it can be so useful.
0.12.0 is available 0.12.0+wicket-7 is not :( hopefully will be available tonight
@solomax Sorry. I forgot to promote the new version in sonatype but I resolved the situation.
somehow http://repo1.maven.org/maven2/ro/fortsoft/wicket/dashboard/wicket-dashboard-core/0.12.0%2bwicket-7/ link is broken I need to go to ApacheCon will check again later :(
I see that you have a presentation "Set Up And Use Apache Openmeetings In 30 Minutes" at ApacheCon. Good luck. For me it is the first time when I have this kind of problem. Maybe I must create a ticket to sonatype.
Thanks a lot :)
I was able to download wicket-7 artifact Everything seems to work as expected Thanks a lot!
One of our users claims RTL is not supported by Dashboard :( I'm planning to create additional CSS file with "override" RTL rules and add it in case RTL-language is selected I can contribute it back to your project
Are you interested in it?