Re: [HACKERS] Re: [GENERAL] error messages not only English - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] Re: [GENERAL] error messages not only English
Date
Msg-id 356AE3CC.33E86299@krs.ru
Whole thread Raw
In response to Re: [GENERAL] error messages not only English  (The Hermit Hacker <scrappy@hub.org>)
Responses Re: [HACKERS] Re: [GENERAL] error messages not only English
List pgsql-hackers
The Hermit Hacker wrote:
>
> Hrmmm...create an 'include/utils/errmsg.h file that is a link created by
> configure based on a --with-language=<insert your language here>...the
> file would contain:
>
> #define <ERRMSG TOKEN> "Error message in your language"
           ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Then use the TOKEN with elog...
>
> If we did something like this, we wouldn't have to convert all at once
> either, just as we pick up a new one...

Sometime ago we told about using error codes in elog (and put them to the
client) - this would very useful for non-interactive applications...

How about to implement this ?

Vadim

pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Current sources?
Next
From: Vadim Mikheev
Date:
Subject: Re: [GENERAL] RE: [HACKERS] error messages not only English