0

Arabic Language Support

asked 2009-12-11 08:56:57 +0800

ahmad gravatar image ahmad
138 1

Hi all, I am developing an application with arabic langauge UI, I want to change direction of all UI components to be RTL(right to left).
How can I do that.
Thanks for COncern.
Ahmad Elsafty

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2009-12-13 19:12:55 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi,ahmad
you can use 'setStyle("float:left")'
like this

<zk>
<textbox id="tb"/>
<separator height='50px'/>
<button label="left" onClick='tb.setStyle("float:left")'/>
<button label="right" onClick='tb.setStyle("float:right")'/>
</zk>

link publish delete flag offensive edit

answered 2009-12-13 22:07:08 +0800

ahmad gravatar image ahmad
138 1

Thank you "as1225" for reply.
Ahmad Elsafty

link publish delete flag offensive edit

answered 2011-04-07 16:30:40 +0800

hsoboh gravatar image hsoboh
18

Hi Ahmad:
Did you manage to change the labels also to arabic?
I am trying to have multilingual application that support Arabic and English. when the user select Arabic the application should render its components from right to left, although it should render arabic labels. The same applied when the user select English, the application should render its components from left to right and render english labels.
I managed to render the components from left to right or from right to left based on the selection. But changing the lables does not succeded since i have to reload the page so that the labels can take the effects, and this is the problem: the style i added programmatically to play with the direction dropped once the page is reloaded.
Did you manage such issue ?

Thanks,
Hussein

link publish delete flag offensive edit

answered 2011-04-07 16:48:53 +0800

hsoboh gravatar image hsoboh
18

I solved it by changing the direction of the components after the page is reloaded inside doAfterCompose() method :)

Hussein

link publish delete flag offensive edit

answered 2015-08-18 14:44:53 +0800

asafg gravatar image asafg
1

Hi Hussein, How did you solve the problem with buttons distorting the button's image and menus aligning text to the wrong direction? Could you share some code/ideas?

TIA, Asaf

link publish delete flag offensive edit

answered 2017-10-05 03:12:57 +0800

translationco gravatar image translationco
1

updated 2017-10-05 09:00:39 +0800

jeanher gravatar image jeanher
1654 1 5
ZK Team

Hussein, I am working on an Arabic legal translator project, can you please elaborate that how did you solved this issue?

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-12-11 08:56:57 +0800

Seen: 743 times

Last updated: Oct 05