tags:

views:

55

answers:

2

How I detect what language the current system?

Taskbar

+6  A: 

The "EN" label in the screenshot doesn't actually refer to the language of the system, but to a selected input keyboard. To get this information programmatically, you can use the CurrentInputLanguage property of the InputLanguage type.

Tomas Petricek
+1  A: 

In C# you can do the following:

string inputLanguage = System.Windows.Forms.InputLanguage.CurrentInputLanguage.LayoutName;

In case of EN you will get US as an inputLanguage value.

Petros