is there a way to check if the current input language uses latin letters?
-
hi can you please tell me if there's a way to check the current InputLanguage if it's considered a latin language? thank you
use System.Globalization; namesapce and check if(CultureInfo.CurrentCulture.DisplayName=="Latin") //Note Check the exact name of Language it would not be "Latin" in your system to get currently istalled cultures name use CultureInfo.InstalledUICulture.DisplayName
-- modified at 2:18 Tuesday 25th July, 2006 -
hi can you please tell me if there's a way to check the current InputLanguage if it's considered a latin language? thank you
I do not think there is a direct way. You can go though the CultureInfo's TextInfo property and get the code page (ANSI, OEM or whatever you like) and try to base it on this. It would probably narrow it down to a few codepages you should "include", but to be honest I am afraid you might as well create a manual list and check the major language name. It should not take toooo long. :)