How I detect what language the current system?
+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
2010-10-03 02:10:00
+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
2010-10-03 02:32:12