Solved

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

Posted on 2012-03-20
2
328 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

11 Experts available now in Live!

Get 1:1 Help Now