Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to install one language from control panel--> Region and Language-->keyboard language --> add--> Arabic(language).. i need to install this thing when i click on button control in my winform application. how can i install?
Posted
Comments
bdjunayed 14-Aug-15 14:38pm    
when if my app close/exit, how to uninstall the arabic culture.

1 solution

Hi,

try like below.
C#
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("ar");
System.Threading.Thread.CurrentThread.CurrentCulture = ci;

"ar" specifies, its arabic. Its the culture name for arabic.

the above code will create the new culture and that will be added to your thread. in your case will be suitable, the culture is active till the thread exists.

more on CultureInfo is here
MSDN-CultureInfo Class[^]
Culture Names[^]

hope it helps.
 
Share this answer
 
Comments
sai sagar 20-Mar-13 6:13am    
sorry.. that is not my answer. once read my question clearly.. i want to install language from control pannel
Karthik Harve 20-Mar-13 6:50am    
what do you mean by installing a language ? do you think windows does not understand arabic by default ?
sai sagar 20-Mar-13 6:53am    
i want to install telugu,hindi,arabic languages from region and language settings through c# coding
Karthik Harve 20-Mar-13 6:58am    
That is what the cultureInfo class does. that will change your system culture temporarily across the specified thread, into the new culture you specify. culture includes everything like, language, date time format etc.
sai sagar 20-Mar-13 7:04am    
i don't want culture. i need keyboard layout for Arabic,Telugu,,Hindi. i need only keyboard layout to change to proper language.
i all ready explained how to change keyboard language manually in my question. and again i explained (control panel-->region and language-->keyboard layout-->add (here we can add number of languages))
i need do this this form c# coding...

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