Solved

Display error messages in a different language that the operating system.

Posted on 2012-03-20
2
329 Views
Last Modified: 2012-03-21
Hi,
I have already installed the .net framework 4.0 spanish language pack in a windows server whose language is english.

I also created a windows service that runs on that server that sends to an email some application error messages acording to the errors or exceptions caught, but the messages are displayed in english and I want them to be displayed on spanish.

What I have to do in order to get the messages in spanish?

Regards and thanks in advice.
0
Comment
Question by:francisco_j_rosas
2 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37745716
create new culture info object for spanish culture, have a look at this msdn article for the same:-
http://msdn.microsoft.com/en-us/library/system.resources.resourcemanager.aspx
http://tutorial.visualstudioteamsystem.com/details.aspx?item=145

to make sure that spanish reflect in all your messages, you need to change the default culture of your main thread... see the second link for that...
0
 

Author Closing Comment

by:francisco_j_rosas
ID: 37749309
Thank you, it really helped me.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now