0

is there any chance to translate Interbase/Firebird exception messages ? For eg. I have Exception

TOO_MANY_CONNECTS 'There are to many connect to database, please try again later.'

And now clients from other country (for eg. Russia) want to see exception message in their native lang. I know that FireBird 2.1 allow to put custom exception message (and it solves my problem), but InterBase 7.5 don't.

Thanks.

Marek Ruszczyk
  • 100
  • 1
  • 8
  • 3
    One option is to translate it on the application side, by taking the English message as the resource key to look up to the translated variant. – Mark Rotteveel Jul 18 '13 at 12:12
  • I was afraid of that, so Thank you for answer :) – Marek Ruszczyk Jul 19 '13 at 12:49
  • That is one of the reasons I posted as a comment instead of an answer. I hope you (or some one else) finds a better way. – Mark Rotteveel Jul 19 '13 at 13:18
  • Not sure if this will help you but theoretically in PSQL you can override the exception's default message. Check this [link](http://www.firebirdsql.org/refdocs/langrefupd15-psql-exception.html) in the Firebird docs. – Guillem Vicens Jul 19 '13 at 19:14
  • @GuillemVicens: Yes i know it. But problem is that Interbae 7.5 doesn't have this function. – Marek Ruszczyk Jul 20 '13 at 17:26
  • 1
    If you translate it yourself on the application side, as suggested, you can then also display the official IB error message. You don't have to translate every message, especially if you are writing for the end user, who may not understand all messages even if translated. – Patrick Moloney Aug 09 '13 at 13:34

0 Answers0