Solved

Multilingual applications

Posted on 2014-04-15
3
598 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 80

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
 
LVL 1

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

735 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