Home All Groups Group Topic Archive Search About

Exception text translation

Author
14 Feb 2006 4:48 PM
Dan
In order to completely globalize a .Net application it must be possible to
translate the messages of system exceptions to other languages.
Of course it's possible to catch the system exceptions and rethrow them with
translated messages, but in a large system you want to translate them
globally in the application (in one place)

Is this possible?
Any third party products?

Author
14 Feb 2006 6:26 PM
Nick Hounsome
"Dan" <D**@discussions.microsoft.com> wrote in message
news:CD69442A-5165-462C-9310-684D4FD61E34@microsoft.com...
> In order to completely globalize a .Net application it must be possible to
> translate the messages of system exceptions to other languages.
> Of course it's possible to catch the system exceptions and rethrow them
> with
> translated messages, but in a large system you want to translate them
> globally in the application (in one place)
>
> Is this possible?
> Any third party products?

Exception text is not intended to be read by end users.

Your app should log the exception somewhere and your users should then email
you the log which they have no need to understand.

Of course - if you mean library rather than app then there MIGHT be a case
for translation but the simplest way would be just to prefix the text with
an error number and have them look it up in a file.
Author
15 Feb 2006 2:07 AM
Brian Begy
Why not just define a set of generic error messages and log the real
exception for your own use?  Having "Problem saving order.  Staff have
been notified." in ten languages might be enough.

BugSentry needs beta testers!
www.bugsentry.com

*** Sent via Developersdex http://www.developersdex.com ***

AddThis Social Bookmark Button