Solved

Multilingual applications

Posted on 2014-04-15
3
577 Views
Last Modified: 2014-04-15
I would like to know is there a good means to achieve a multilingual application.  I am aware that most Microsoft controls allow for localisation.  Is there a facility similarly for error provides and message boxes etc.  For example using resource file/s?
0
Comment
Question by:Alyanto
3 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 250 total points
ID: 40001037
Yes, there is.

You first create entries for the default language in the Resources tab of the project's Properties window, by giving them a name, and then the text you want to display.

Make sure you close the window so that the changes are saved before you go on for translation.

In the Solution Explorer, activate the button to Show All Files, and open the My Project folder (Properties if you are in C#). Make a copy of the resources.resx file, and give it the same extension as the ones that were generated when you created the forms, like resources.fr.resx for French.

Right click on the file and make sure to include it in your project. Then DoubleClick on it. You will find yourself in the resources editor. Keep the same names but translate the text.

You can use these resources in the code anywhere you could have a String, using the following syntax:

MessageBox.Show(My.Resources.YourResourceName) 'VB
MessageBox.Shoe(Properties.Resources.YourResourceName); //C#

Open in new window

0
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 250 total points
ID: 40001039
It all has to do with localization settings  .. A good example is here: Globalization and Localization in .NET - http://goo.gl/bFxijW
0
 

Author Closing Comment

by:Alyanto
ID: 40001178
Thank you gentlemen, I think I have enough here to construct my solution.  I liked James simpler method of creating resource files and David's recommended reading gave me a lot of ideas about how best to structure the information in each resource file.

/Aly
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now