How can I find out what cultures are supported by the user's PC?
For instance...
VB Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim LocRM As New ResourceManager("WindowsApplication2.WinFormsStrings", GetType(Form1).Module.Assembly) Dim xCulture As System.Globalization.CultureInfo Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("ar-SA") Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo("ar-SA") xCulture = Thread.CurrentThread.CurrentCulture MessageBox.Show(LocRM.GetString("strMessage", xCulture)) End Sub
... presumably isn't going to work if the OS does not support "ar-SA" as a culture, even if I provide the WinFormsStrings.ar-SA.resx file.
How can I find out if the .resx files I distribute are supported by the user's OS or not?




Reply With Quote