developing an international application

G

Guest

Hi,

I need to mofidy my project to work in europe with spanish, german etc.

I figure there are four areas that I have to modify to cope with showing the
needed language.

1- Labels of controls on forms.
2- Text I display in message boxes
3- Error messages (err.description)
4- Error message from the database (SQL Server)

I have taken a look at some information on MSDN, and from what I can figure
I have to use a resource file, and put my messages i want to display into
the resource file. That covers items 1 and 2. I am only struggling to use
the resource files in my app, either setting my form controls when I load
them, or getting a string value from the resource file to show in my message
boxs.. any help on how to do this would be great...

Where I am getting a bit lost is on 3 and 4.

I often show the user the actual err.description value. If my user is using
say German Windows, will the err.description be in german automaticlly ?

I also show the error from SQL Server. If the user has German SQL Server
will this also mean that all sql messages that go to the client be in
German?

Thanks
 
C

Cor Ligthert[MVP]

It does not depends of the windows language version. It depends of the
language setting (which is in a german system standard german) and the used
Net version (which is mostly then also german in the german case). Of course
your own language will be as you used them and you have to check the culture
settings for those.

Be aware that this was in som cases a mess in old Net versions where you
could get often some mixed language messages.

Cor
 
H

Herfried K. Wagner [MVP]

NoSpamMan said:
3- Error messages (err.description)
4- Error message from the database (SQL Server)

I have taken a look at some information on MSDN, and from what I can
figure I have to use a resource file, and put my messages i want to
display into the resource file. That covers items 1 and 2. I am only
struggling to use the resource files in my app, either setting my form
controls when I load them, or getting a string value from the resource
file to show in my message boxs.. any help on how to do this would be
great...

Where I am getting a bit lost is on 3 and 4.

I often show the user the actual err.description value. If my user is
using say German Windows, will the err.description be in german
automaticlly ?

Yes, if the German language pack of the .NET Framework is installed. I
didn't yet take a closer look at it, but maybe changing the current culture
will switch the language for the error messages too if the appropriate
language packs for the .NET Framework are installed.
 

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