Windows Develop Bookmark and Share   
 index > Windows Forms General > How to make a multi lingual Windows Forms application in C#
 

How to make a multi lingual Windows Forms application in C#

I'm trying to find out how to make my application to support multiple languages. I've been searching around but haven't found what I'm looking for.

What I'm looking for is a way to let the user choose which language the application should be in and then the application fetches the strings from a resource file. The problem is that I don't know how to make a relative reference to the language resource file, which changes when the user changes the language.

The part of storing the chosen language I can handle, but how to use that information to get the application to automaticly fetch strings from the right resource file is the hard part.

I'm writing in VS 2008 Pro in .NET 3.5.
Jon Stødle  Wednesday, May 06, 2009 4:53 PM
I think the following tutorial should certainly help you. It's from VS2005, but the same things apply:

http://msdn.microsoft.com/en-us/library/y99d1cd3(VS.80).aspx
David Morton - http://blog.davemorton.net/
  • Marked As Answer byJon Stødle Wednesday, May 06, 2009 8:55 PM
  •  
David M Morton  Wednesday, May 06, 2009 5:00 PM
I think the following tutorial should certainly help you. It's from VS2005, but the same things apply:

http://msdn.microsoft.com/en-us/library/y99d1cd3(VS.80).aspx
David Morton - http://blog.davemorton.net/
  • Marked As Answer byJon Stødle Wednesday, May 06, 2009 8:55 PM
  •  
David M Morton  Wednesday, May 06, 2009 5:00 PM
You could get the CultureInfo.CurrentCulture to decide the language ("en-GB" etc.) and use it to choose a string file.

Strings you could put in a resource I suppose.
For the rest, it's a lot of work.
read up on "Internationalization".
It's rather complicated: think number format, date display, currency, time...
erik5000  Wednesday, May 06, 2009 5:14 PM
Thanks, exactly what I was looking for
Jon Stødle  Wednesday, May 06, 2009 8:55 PM

You can use google to search for other answers

Custom Search

More Threads

• Popup Toast
• [1.1] Trouble between Title bar and taskbar
• Drag and drop graphical question
• Non Modal Form and Modal Dialog Form
• vertical scrollbar doesn't display
• Changes on PropertyGrid
• Extended stored procedures in C#
• DataGridViewComboBoxColumn - Display vs. Actual (data) value
• How to focus on a row in a Datagridview control
• ToolStrip: problem with DPI scaling