Mulitilanguage support in C# ???

E

Eric Chow

Hello,

I want to support multi-language in my C# program.

What can I do???
How can I change the locale in the menu, then the language will use the
specific country resources ?
How can I compile those different resources properties into DLL, and the C#
program can dynamically load it when change the locale?

I tried to use SharpDevelop as the IDE, when I change the language, it will
create a new resource files automatically.
But how can I tell my C# program which one I should use ???


Eric
 
B

Benny Tordrup

Eric,

The locale can be changed run time by setting
System.Threading.Thread.CurrentUICulture (AFAIR) to a new culture. This,
however does not reflect on created form instances as resources are loaded
at creation time. You will need to reload resources to reflect locale change
at run time.

Best regards,

Benny Tordrup
 
E

Eric Chow

Hi Benny,

Thanks for you reply.
Another question, How can I display some Asian characters(Chinese, Japanese,
Korean, etc) in English environment?

As I know we can use unicode(utf-8). How can I implement this in C# with
resources ????


Eric
 
L

Leon Lambert

Just make sure you have the asian fonts installed. You can do this In
the "Regional and Languages Options" control panel. On the Languages tab
click the "Install files for Asian Languages" button. This will load in
the asian font. This should then allow you to use the Asian locales.

Hope this helps.
Leon Lambert
 

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

Top