Where do I set CurrentUICulture

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ken

    #1

    Where do I set CurrentUICulture

    Hello,

    I am trying to learn how to build a localizable windows application
    and am having trouble getting alternate languages to display when if
    stop hardcoding the culture settings. The line where I hard code the
    CurrentUICultur e is in the form's constructor and is like:

    Thread.CurrentT hread.CurrentUI Culture = new CultureInfo("pt-BR");

    When this line is present, the form displays in Portuguese.

    However, once I comment out this line, I always see English, and never
    the other languages. I'm trying to display the Portuguese form
    without hardcoding the culture setting.

    I think this is related. The variable
    "System.Globali zation.CultureI nfo.CurrentUICu lture" always returns the
    value "en-US". I am guessing that if the value of this variable
    changes, then so would the localized resourced file used in my
    application.

    Where in the Win2000 OS do I change this value? I was thinking it
    would be under Regional Options in the Control Panel, but nothing I
    change seems to affect that variable.

    Thanks,
    -- Ken
Working...