Обсуждение: Translating sql error codes

Поиск
Список
Период
Сортировка

Translating sql error codes

От
"Andrus"
Дата:
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.



Re: Translating sql error codes

От
Tom Lane
Дата:
"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