Click here to Skip to main content
14,218,842 members
Rate this:
Please Sign up or sign in to vote.
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100