473,395 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Implementing multiple languages (C#)

Hi,

I've been writing an app, but have recently discovered the need to go multilingual (I need primarily German). So, I was wondering, what is the best way to implement multiple languages in a C# (or any Object-oriented) environment?

My plan as of right now is to use XML files with a bunch of id/value pairs (ID might be WELCOME_STRING and value for German would be Willkommen, for example.) In the base code that loads the saved application preferences, I would use a method to parse the proper XML, based on what language was saved as the user's preference, and put it into a Language object that I implemented. Each language object has a List of WordTranslation objects that each contain an id/value pair. This language object would be passed from form to form and the initialization method on each form would use the Language object to change the text properties of any labels/buttons/dialog boxes.

Is this an okay way to do it, or is there a better way that anyone knows? Any help at all would be appreciated.
Sep 20 '08 #1
1 1427
mldisibio
190 Expert 100+
Just to get you started, do a search on Framework "Globalization" and "Localization". The Framework has built-in model to support your task, which is a common requirement.

MSDN: Introduction to Internationalization in the .NET Framework

A great resource is Addison-Wesley:

.NET Internationalization: The Developer's Guide to Building Global Windows and Web Applications
by Guy Smith-Ferrier
Sep 20 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Bernard | last post by:
Hi All, I am not sure if I should be asking this question on clc or clc++. Let me try on both. I hope that this is not too trivial for the brilliant minds over here. I know that OOP questions...
6
by: Kerry Sanders | last post by:
I am working on a project for work where I need a specialized type converter to convert the value of a string which is edited in a grid back to the underlying object type from the cell. The value...
4
by: phl | last post by:
hi, My question is: 1. To avoid possible memory leaks, when you use this pattern, after you have dealth with the unmanaged resources and before you take your object off the finalize queue,...
6
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.