Translating sql error codes

Started by Andrusalmost 20 years ago2 messagesgeneral
Jump to latest
#1Andrus
eetasoft@online.ee

I want that end users see error messages descibed in

Appendix A. PostgreSQL Error Codes

in Estonian.
I can provide translations to those error codes.

How to make Postgres server to return my translated error messages ?

Or is it more reasonable to implement this in my application by displaying
text corresponding to sql error code ? In this case I can translate SQL
error codes returned by ODBC driver also.

Andrus.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andrus (#1)
Re: Translating sql error codes

"Andrus" <eetasoft@online.ee> writes:

I want that end users see error messages descibed in
Appendix A. PostgreSQL Error Codes
in Estonian.
I can provide translations to those error codes.

How to make Postgres server to return my translated error messages ?

Step right up and become a translator :-). There's some starting
information here:
http://developer.postgresql.org/docs/postgres/nls-translator.html
and most of the work gets done here:
http://pgfoundry.org/projects/pgtranslation/

regards, tom lane