Mega Code Archive

 
Categories / C# Tutorial / Internationalization
 

Set the current UI culture for the executing thread

using System; using System.Globalization; using System.Threading; class MainClass {   public static void Main()    {     Thread.CurrentThread.CurrentUICulture=new CultureInfo("fr-FR");     Console.WriteLine(Thread.CurrentThread.CurrentUICulture.Name);   } } fr-FR