CSLA Messages Exception in Spanish

CSLA Messages Exception in Spanish

Old forum URL: forums.lhotka.net/forums/t/4811.aspx


juancho559 posted on Tuesday, May 06, 2008

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...

 

JonnyBee replied on Wednesday, May 07, 2008

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

RockfordLhotka replied on Wednesday, May 07, 2008

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.

juancho559 replied on Wednesday, May 14, 2008

Hi, I appreciate your help

Regards...

Copyright (c) Marimer LLC