Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am developing an asp.net application which is an online article collection application which allows the users to upload and search for articles.

The website should support two langauges, Arabic and English.
I have developed websites which supports multiple languages but all those were Left to Right written.
Here the problem is with Arabic as it is written from Right to Left.

The user should have an option to switch language from Arabic to English and vice versa, along with that the layout also should change from right to left style and vice versa.

To solve the above issue I have tried these steps.

1- I have created two themes one for English and one for Arabic. And when the user select arabic, I will apply RTL(arabic) theme and if it is English I do the opposite.

How can we change the layout dynamically?

As we can see in google, the entire page and controls should be from RIGHT TO LEFT.

Is it a reliable method? I am not enough confident to go ahead with the above method and facing some probles.
Anybody have any suggestions on this??

Sorry for my Bad English..

Any reply will be accepted..

Thanks...
Posted
Updated 9-Feb-11 22:31pm
v2
Comments
Dalek Dave 10-Feb-11 4:32am    
Edited for Spelling, Grammar and Readability.
(You English is very good, much better than my Arabic!)

1 solution

As you can see here[^] .Net 3.0 and above have bidirectional support. Thus if you are using 3.0 or above, you should be ok.
 
Share this answer
 
Comments
murshidalamkhan 10-Feb-11 3:42am    
Yes. It will support arabic by changing the dir value. My question is how to switch the layout when ever I change the language from Ar to Eng and English to Ar.I am using a resource database to change the static content based on the language selection and I can update the static content easily. But incase of arabic, I have to update the css also(I think). How can we do this.
murshidalamkhan 10-Feb-11 3:46am    
Thank you for your answer....
Abhinav S 10-Feb-11 3:48am    
Maybe this can help you - http://msdn.microsoft.com/en-us/magazine/cc163566.aspx?
It should help you switch resources.
Dalek Dave 10-Feb-11 4:32am    
Good Answer.
murshidalamkhan 10-Feb-11 5:51am    
Good Answer. I will be back after checking..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900