I'm writing an application that needs to be localized into German. I've
set the Localizable to 'true' and the language to 'German' on my form.
I've translated all of my controls.

However, I have a UserControl on my form (which I have also localized to
German) but the designer still shows it in English. I have recompiled so I
know that the designer should know about the localized version of the
UserControl.

Is this the expected behavior, or should I see the localized German version
of my UserControl as well?

Also, is there any way I can specify on startup what language I want to
use? I'd like to run my program in "German mode" to make sure I haven't
missed anything.

Thanks!

-mdb

Re: Localization question by Claudio

Claudio
Thu May 19 10:35:40 CDT 2005

On Thu, 19 May 2005 08:19:23 -0700, mdb wrote:

> I'm writing an application that needs to be localized into German. I've
> set the Localizable to 'true' and the language to 'German' on my form.
> I've translated all of my controls.
>
> However, I have a UserControl on my form (which I have also localized to
> German) but the designer still shows it in English. I have recompiled so I
> know that the designer should know about the localized version of the
> UserControl.
>
> Is this the expected behavior, or should I see the localized German version
> of my UserControl as well?

don't know that.

>
> Also, is there any way I can specify on startup what language I want to
> use? I'd like to run my program in "German mode" to make sure I haven't
> missed anything.
>

Yes.You have the to set the UICulture on the thread your form is running in
to german:
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");

--
Claudio Grazioli
http://www.grazioli.ch
http://www.grazioli.ch/HommingbergerGepardenforelle/

Re: Localization question by mdb

mdb
Thu May 19 10:39:25 CDT 2005

Claudio Grazioli <newsgroups@gmx-ist-cool.de> wrote in
news:a2g0v34ex1w.1n0bsw8h1t2eu$.dlg@40tude.net:

> Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");

Can I do that while the program is running, to dynamically switch between
languages?

-mdb

Re: Localization question by Claudio

Claudio
Thu May 19 11:07:10 CDT 2005

On Thu, 19 May 2005 08:39:25 -0700, mdb wrote:

> Claudio Grazioli <newsgroups@gmx-ist-cool.de> wrote in
> news:a2g0v34ex1w.1n0bsw8h1t2eu$.dlg@40tude.net:
>
>> Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");
>
> Can I do that while the program is running, to dynamically switch between
> languages?
>
> -mdb

no. A form that is already open will not change the language when you call
this code. You would have to reload the form to switch the language.

--
Claudio Grazioli
http://www.grazioli.ch
http://www.grazioli.ch/HommingbergerGepardenforelle/