Thread: translate referential integrity violation

translate referential integrity violation

From
"fabricio"
Date:
 
 

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
 
Attachment

Re: translate referential integrity violation

From
Robert Treat
Date:
On Mon, 2003-07-28 at 15:41, fabricio wrote:
> 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>"

You'll need to check out the source code from CVS and look for the .po
files. These files contain the language strings for various parts of
postgresql. If you translate them to Portuguese you can then build
postgresql in your language. though i didn't notice any in the source
code, it is possible that someone has already done this, check out
http://pgsqlbr.querencialivre.rs.gov.br/ for more info.

Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL