Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

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

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
Francisco Rosas
Asked:
Francisco Rosas
1 Solution
 
BuggyCoderCommented:
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
 
Francisco RosasIngeniero en SistemasAuthor Commented:
Thank you, it really helped me.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now