Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show labels in French

Status
Not open for further replies.

essa2000

Programmer
Dec 6, 2000
299
CA
Dears ;

I want to make one application which I can implement in English and French version. I mean all the labels and data will be displayed in French If I want to change configuratoin.

I am working in VB.NET. I checked there is one property on Form i.e. Language but nothing happened when I changed it to french.

Can anyone give me a clue.

Thanks.


Muhammad Essa Mughal
Software Engineer
iLogic Inc.
 
Take a look at the ResourceManager class in the System.Resources namespace.

Basically - you use this class to look up your string prior to setting the text of your labels. Your applications text is divided into two groups:
[ul][li]Culture Invariant which is stored in your main assembly[/li]
[li]Culture Variant which is stored in satellite assemblies[/li][/ul]
Culture invariant info is used when culture-variant info can't be found (put your default language in it). When the Resource Manager goes to locate the satellite assembly, it first checks the GAC to see if it's been registered. Otherwise it looks for a directory with the culture name (en-US, fr-CA, etc) for the assembly.

It's a huge topic, and you can spend days reading on it. Start here:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconcreatingusingresources.htm

Chip H.



If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top