Results 1 to 4 of 4

Thread: RESOLVED: Find our what cultures are supported.

Threaded View

  1. #1

    Thread Starter
    New Member The Monk's Avatar
    Join Date
    Dec 2001
    Location
    Cyberspace
    Posts
    8

    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:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         Dim LocRM As New ResourceManager("WindowsApplication2.WinFormsStrings", GetType(Form1).Module.Assembly)
    3.         Dim xCulture As System.Globalization.CultureInfo
    4.  
    5.         Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("ar-SA")
    6.         Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo("ar-SA")
    7.  
    8.         xCulture = Thread.CurrentThread.CurrentCulture
    9.  
    10.         MessageBox.Show(LocRM.GetString("strMessage", xCulture))
    11.  
    12.     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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width