translate referential integrity violation

Started by fabricioover 22 years ago2 messagesgeneral
Jump to latest
#1fabricio
fabricio@icolony.com.br

iColony - Departamento de Projetos

Paulo Fabrício Puga Miranda
Desenvolvimento de TI

fabricio @icolony.com.br
(31) 9691-3494

--------------------------------------------------------------------------------

Hello,
I would like to know how can I change the error messages from PostgreSQL, because I need to translate them to Portuguese, thanks!
Example:
this is the message: "ERROR: <table> referential integrity violation - key referenced from <table>",
this is what I need: "ERROR: <table> INTEGRIDADE REFERENCIAL VIOLADA <table>".

--------------------------------------------------------------------------------

Avenida Afonso Pena, 4000 - 3o. andar - FUMSOFT - INSOFT-BH
Bairro: Cruzeiro - CEP: 30130-009
Belo Horizonte - MG - Brasil
Telefone: +55 (31) 3287-9018¦ Fax: +55 (31) 3284-2857

Attachments:

logo_mail.gifimage/gif; name=logo_mail.gifDownload
transp.gifimage/gif; name=transp.gifDownload
vert_line_tri.gifimage/gif; name=vert_line_tri.gifDownload
colony_eter.gifimage/gif; name=colony_eter.gifDownload
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: fabricio (#1)
Re: translate referential integrity violation

"fabricio" <fabricio@icolony.com.br> writes:

I would like to know how can I change the error messages from Postgre=
SQL, because I need to translate them to Portuguese, thanks!

Doesn't look like anyone's started on a Portuguese translation yet,
but you're welcome to do so. (If that sounds like an awful lot of work,
it is, but you can translate just the messages you need most to start
with.)

See the documentation at
http://developer.postgresql.org/docs/postgres/nls.html
to get started. Also, the existing Spanish translation
(src/backend/po/es.po) might be useful, at least as a comparison file.

regards, tom lane