Where do I set CurrentUICulture

  • Thread starter Thread starter Ken
  • Start date Start date
K

Ken

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
CurrentUICulture is in the form's constructor and is like:

Thread.CurrentThread.CurrentUICulture = 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.Globalization.CultureInfo.CurrentUICulture" 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
 
Back
Top