|
-
Feb 2nd, 2002, 06:42 AM
#1
Thread Starter
New Member
RESOLVED: Find our what cultures are supported.
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?
Last edited by The Monk; Feb 5th, 2002 at 12:01 AM.
The Monk.
-
Feb 4th, 2002, 08:34 AM
#2
Thread Starter
New Member
I guess nobody knows. Or maybe nobody cares.
-
Feb 4th, 2002, 09:19 AM
#3
I believe the CultureInfo.GetCultures method can be used to retrieve the supported cultures.
-
Feb 5th, 2002, 12:00 AM
#4
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|