CSLA .NET

From Rockford Lhotka's Expert C# 2005 and VB 2005 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

CSLA Messages Exception in Spanish

Last post 05-14-2008, 10:32 AM by juancho559. 3 replies.
Sort Posts: Previous Next
  •  05-06-2008, 4:59 PM 23372

    CSLA Messages Exception in Spanish

    Hi,

    I would like to know What I have to set up to receive exception messages in spanish language from CSLA framework. I see that the sample project (Project Tracker) throws exception messages in spanish, but when I use the framework in my application, I receive the messages in English. I've added the CSLA.dll to my project but I don't know if I have to add another dll.

    I appreciate your help...

     

  •  05-07-2008, 2:29 AM 23380 in reply to 23372

    Re: CSLA Messages Exception in Spanish

    Hi,

    Make sure that all the language files (or the ones you need) are copied to your bin folder. You should at least have a folder named es and es-ES with the spanish messages in the file Csla.resources.dll.

    English is the default language and if a language resource is missing all the messages will be shown in English.

    /jonny
  •  05-07-2008, 9:19 PM 23426 in reply to 23380

    Re: CSLA Messages Exception in Spanish

    Also, .NET selects the language resource file based on the UI culture value for your thread. This defaults to the culture setting for your machine, but can be changed.

    So your machine's culture would need to be es or es-ES so the thread defaults to that value - or you need to set the thread's UI culture explicitly to the value you want.

    Then .NET should automatically use the appropriate resource file from the folder with that culture's name.


    Rocky
  •  05-14-2008, 10:32 AM 23574 in reply to 23426

    Re: CSLA Messages Exception in Spanish

    Hi, I appreciate your help

    Regards...

View as RSS news feed in XML

Please contact Magenic for your .NET consulting and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems