Subject | Re: [IBO] How to stop multi language error messages? |
---|---|
Author | Paul Vinkenoog |
Post date | 2002-11-28T13:42:58Z |
Hi Arno,
But without kidding: Firebird sometimes passes the OS error message on
to the user. The good thing is that this gives you more information
about what went wrong. E.g. in the above case, the OS message tells
the user _why_ the connection couldn't be made.
The downside is that it may look a bit silly.
My applications are mostly in Dutch. If a catch an IB_Error I often
give the user a Dutch message, followed by an empty line, followed by
the IB_Error.Message
I also translated IB_Constants.pas so my IBObjects speak Dutch, but
IBO often passes on the FB error message, which is in English, and which
in turn may pass on an OS message an any old language.
Although this hodgepodge of languages in what the end user sees as one
message may be confusing, I still prefer it to losing information. Now
if they call me I ask them to read the message, and nine times out of
ten I can tell them immediately what went wrong, and how to solve the
problem.
Of course you can also scan the message for ISC error codes and
produce your own customized messages for certain situations.
Greetings,
Paul Vinkenoog
> Currently a German translation is appended to English messages:Looks like it comes from Germany ;-)
>
> ISC ERROR MESSAGE:
> Unable to complete network request to host "192.168.1.100".
> Failed to establish a connection.
> -->??Es konnte keine Verbindung hergestellt werden, da der
> Zielcomputer....
>
> Where does it come from?
But without kidding: Firebird sometimes passes the OS error message on
to the user. The good thing is that this gives you more information
about what went wrong. E.g. in the above case, the OS message tells
the user _why_ the connection couldn't be made.
The downside is that it may look a bit silly.
My applications are mostly in Dutch. If a catch an IB_Error I often
give the user a Dutch message, followed by an empty line, followed by
the IB_Error.Message
I also translated IB_Constants.pas so my IBObjects speak Dutch, but
IBO often passes on the FB error message, which is in English, and which
in turn may pass on an OS message an any old language.
Although this hodgepodge of languages in what the end user sees as one
message may be confusing, I still prefer it to losing information. Now
if they call me I ask them to read the message, and nine times out of
ten I can tell them immediately what went wrong, and how to solve the
problem.
Of course you can also scan the message for ISC error codes and
produce your own customized messages for certain situations.
Greetings,
Paul Vinkenoog