Localized form name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All
I want a form name to be changed depending upon the cultureInfo. Whenever one creates a form, its corresponding Form1.resx file is created. I created a file named Form1.fr-FR.resx, and added the string resource for form name. The application compiles fine, but even if I change the Thread.CurrentThread.CulturInfo property to fr-FR, the string is not taken from the new file.
Is anything I'm missing
Thanx
Mahesh.
 
Hi,

Don't forget to set the form's property Localizable to true.

greetings

P. Cloup

Mahesh said:
Hello All,
I want a form name to be changed depending upon the cultureInfo. Whenever
one creates a form, its corresponding Form1.resx file is created. I created
a file named Form1.fr-FR.resx, and added the string resource for form name.
The application compiles fine, but even if I change the
Thread.CurrentThread.CulturInfo property to fr-FR, the string is not taken
from the new file.
 
I think you actually want to set Thread.CurrentThread.CurrentUICulture. I have done this and shipped a product that supports it

This isn't really documented very well. To be able to set it in Windows (for ALL of your windows apps) is to install the multi-language packs for Windows. After you can set this in the Region stuff in control panel

Good luck!
 
Back
Top