Current InputLanguage : InputLanguage : I18N Internationalization C# Examples


C# Examples » I18N Internationalization » InputLanguage »

 

Current InputLanguage









    
using  System;
using  System.Drawing;
using  System.Collections;
using  System.ComponentModel;
using  System.Globalization;
using  System.Windows.Forms;
using  System.Data;

class  MainClass{

    static  void  Main()
    {
        InputLanguage  inL  =  InputLanguage.CurrentInputLanguage;

        CultureInfo  info  =  inL.Culture;

        Console.WriteLine("Culture  identifier  =  {0}\n"+
                                        "Display  name  =  {1}\n"+
                            "Calender  =  {2}\n",
                            info.ToString(),
                            info.DisplayName,
                                        info.Calendar.ToString());
    }
}
    
   
  
   



Output

Culture identifier = en-US
Display name = English (United States)
Calender = System.Globalization.GregorianCalendar


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo I18N Internationalization
» InputLanguage