how to build a multilingue C# application ?

  • Thread starter Thread starter Herve MAILLARD
  • Start date Start date
H

Herve MAILLARD

Hi,

I need to have 2 (at least) different language in my C# app.
What's the best way to do that ?

Thanks for your help.

H. MAILLARD
 
Hi Herve MAILLARD,

I assume you want your app to support English or Chinese.

There are 2 ways to achieve this.

1) The not recommended way:

You had 1 xml file.

In the xml file, it support unicode, and it contains elements in English and Chinese. Example,

<Book>
<Title></Title>
<ISBN></ISBN>
</Book>

Chinese will have its own version, and English has its own version.

Now you need to use XMLTextReader to read it manually and assigned it wherever you wants.

2) 2nd way which i think is the good way to do.

Store the multi languages in the resource manager.

http://www.c-sharpcorner.com/Code/2004/March/MultilingualAppsInNet.asp
http://www.thecodeproject.com/csharp/Multilingual_pplication.asp

Hope it helps. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top