Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
hi Guys,

After searching a lot on internet when i could not get a solution I am here.

I have a requirement in my project which supports multiple languages. When I am switching to a specific language It works fine if the language is already there in system language preferences if not it shows an error. To resolve error I had to go manually to the below location and then add language.

Control Panel\All Control Panel Items\Language >> Add a Language

And everything works as expected. Now This is what I want to do programmatically i.e. In code somehow I could add a language to system language preference list.
(c# - preferred language).

Hope you guys will drag me out of this hell.
Posted
Comments
sreeyush sudhakaran 5-Oct-15 6:59am    
Have a look at Localization of .NET https://msdn.microsoft.com/en-us/library/5839we2z(v=vs.110).aspx

Pass a powershell script See here : http://superuser.com/questions/225697/changing-windows-language-programatically

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