The Right Approach to Exceptions

deadalnix deadalnix at gmail.com
Mon Feb 20 12:48:22 PST 2012


Le 20/02/2012 21:12, Gerrit Wichert a écrit :
> On 19.02.2012 01:40, H. S. Teoh wrote:
>> One word: internationalization. Then toString() falls flat on its
>> face. You can't even fix this by having Phobos do the translation
>> internally. You can't expect users of Phobos to only ever support
>> languages that Phobos has been previously translated to, for one
>> thing. That would be a crippling disability. T
>
> Its even better, i want the exception message to be shown to the user in
> the current locales language.
> But for the logs i want it to be in english since i have to maintain
> systems in other countries we sold our software to.
> Its easy to connect to a remote system on the other side of the world,
> but its not so easy to read log files in a foreign
> language.

grep


More information about the Digitalmars-d mailing list