X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4DE7ED1C4C9 for ; Tue, 29 Jul 2003 19:21:36 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 89331-09 for ; Tue, 29 Jul 2003 16:20:37 -0300 (ADT) Received: from localhost.localdomain (unknown [65.217.53.66]) by svr1.postgresql.org (Postfix) with ESMTP id 56D7AD1C4D7 for ; Tue, 29 Jul 2003 16:21:34 -0300 (ADT) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h6TI0oqd000620; Tue, 29 Jul 2003 14:00:52 -0400 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h6TJLIZ12095; Tue, 29 Jul 2003 15:21:19 -0400 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 34ADM917; Tue, 29 Jul 2003 15:21:16 -0400 Subject: Re: translate referential integrity violation From: Robert Treat To: fabricio Cc: pgsql-admin@postgresql.org In-Reply-To: <004901c35540$33ebdfb0$8a02a8c0@DIALICTUS> References: <004901c35540$33ebdfb0$8a02a8c0@DIALICTUS> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 29 Jul 2003 15:21:17 -0400 Message-Id: <1059506478.22260.880.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/298 X-Sequence-Number: 9638 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: referential integrity violation - > key referenced from
", > this is what I need: "ERROR:
INTEGRIDADE REFERENCIAL VIOLADA >
" 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