Click here to Skip to main content
15,907,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am doing a windows application for satisfaction survey.The requirement is that ,I need the questions in English and Arabic language. I have done in English language,its wrkng fine..Now If they want to give the survey in Arabic language,then they should have the option for it.

Really I dont know how to include 2 languages in a project.

Please help me!!!!
Posted
Comments
D K N T H 6-Dec-11 1:57am    
are you using windows app? , please provide more details for us to help you.. thanks
lilian87 6-Dec-11 2:32am    
Ya, im using win app..
How to add 2 languages in a project?
In a form,I have a combbobox to select language -english and arabic. If the customer selects english the form must be in english,and if he selects arabic it must be in arabic.

Help ME!!

Frined jst go through this link it will help you.Its for website but the process for getting values from resource file will remain same:::

Creating multilingual websites - Part 1[^]

You have make changes in your application .

You need to put all string values in resource files.And have to create two diffrent resource files for each language.

And on page_load you can set the string values from the slected language Resource file for each page.
 
Share this answer
 
v2
Comments
Uday P.Singh 6-Dec-11 2:45am    
nice link 5+
 
Share this answer
 
Comments
Uday P.Singh 6-Dec-11 2:45am    
5ed :)
Mehdi Gholam 6-Dec-11 2:46am    
Cheers
lilian87 7-Dec-11 3:57am    
Thanks mehdi for the links.. :)
Mehdi Gholam 7-Dec-11 4:06am    
Cheers
lilian87 7-Dec-11 4:05am    
I got the form translated to arabic and english..
Bt now my question is, how to type arabic words in textboxes ?
And again I want to save the arabic contents to database in english.

Can u help me??
How did you make the application with English language? Did you hard code all the control texts?

I suggest you create 2 XML files, 1 for the English language and another 1 for the Arabic language that would look something like this:

HTML
<captions>
 <form1 controlid="btnCancel" text="Cancel" />
 <form1 controlid="btnOK" text="OK" />
</captions>


This will need you to make another class to read the XML file and use it to load the controls' texts though.

Hope this helps. :)
 
Share this answer
 
Comments
lilian87 6-Dec-11 2:51am    
Can you please help me in writing the xml file for arabic language?
Please!!!
karylle 6-Dec-11 2:54am    
You can just translate your existing English language captions using google translate.
lilian87 6-Dec-11 3:34am    
thanks!! ive translated the titles in arabic..

Sorry to ask you again.. :(
But what about the text that is coming from database? How to convert it?
karylle 6-Dec-11 3:44am    
I'd suggest creating another table using the translated version of your English data.

Have you tried looking into the articles above? it might also give you some ideas. :)
lilian87 7-Dec-11 3:58am    
ya, igot it.. thanks for the reply!!

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