469,950 Members | 2,360 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Multilingual support

I have done multi lingual support in C++ and now I am trying to figure
out how to do in C#.

In C++, there were the string tables where you could enter text in
multiple languages, and now I want to have similar functionality in
C#. What is the equilvalent of string tables in C# resources?

Also, you could make a copy (different language for each copy) of a
dialog/menu in C++ resource editor and I want to do the same thing
with Windows Forms in C#, how can this be done?
Nov 16 '05 #1
2 3949
Resource files are the key for internationalization. Consult the help file
for more info. It is very similar to the C++ string table, but a bit more
flexible.

As for the second question. The norm for resource files, with
globalization/localization, is to set up a file for each language. Look at
MSDN, as there are plenty of examples on this, including setting up a
framework that automatically grabs default language settings when there are
none in the particular language the user has his machine set to use.

You will find that much of the globalization work is done for you in the
..NET Framework. Rather than reinvent the wheel, study the help file, as well
as the MSDN articles. The Culture objects will save you from writing a ton
of code. Well worth the time.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"kensmtih1976" <ks****@daktronics.com> wrote in message
news:8a**************************@posting.google.c om...
I have done multi lingual support in C++ and now I am trying to figure
out how to do in C#.

In C++, there were the string tables where you could enter text in
multiple languages, and now I want to have similar functionality in
C#. What is the equilvalent of string tables in C# resources?

Also, you could make a copy (different language for each copy) of a
dialog/menu in C++ resource editor and I want to do the same thing
with Windows Forms in C#, how can this be done?

Nov 16 '05 #2
M

"kensmtih1976" <ks****@daktronics.com> wrote in message
news:8a**************************@posting.google.c om...
I have done multi lingual support in C++ and now I am trying to figure
out how to do in C#.

In C++, there were the string tables where you could enter text in
multiple languages, and now I want to have similar functionality in
C#. What is the equilvalent of string tables in C# resources?

Also, you could make a copy (different language for each copy) of a
dialog/menu in C++ resource editor and I want to do the same thing
with Windows Forms in C#, how can this be done?


I just went down this same road this past weekend.

Look up ResourceManager in help and check this

http://www.devhood.com/tutorials/tut...utorial_id=211
Also when you get to the part of naming the resouce files its best to follow
the naming conventions suggested. Like I tried to name them
Languages.English' but it wouldn't work until I renamed it to
'Languages.en-US'. I don't recall it saying that need to be that way but it
apparently does.

Good Luck

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by indyjason79 | last post: by
4 posts views Thread by Asim Qazi | last post: by
reply views Thread by kuldeep | last post: by
reply views Thread by kuldeep | last post: by
1 post views Thread by wolfen | last post: by
reply views Thread by Jim Adams | last post: by
4 posts views Thread by Jim Adams | last post: by
1 post views Thread by Jonas Nilsson | last post: by
7 posts views Thread by =?Utf-8?B?TWlrZQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.