FW: Where to find translation of Postgres error messages?

From: Együd Csaba <csegyud(at)vnet(dot)hu>
To: pgsql-general(at)postgresql(dot)org
Subject: FW: Where to find translation of Postgres error messages?
Date: 2005-06-08 14:31:33
Message-ID: 0IHR005VZSCMZ8@mail.vnet.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

-----Original Message-----
From: Együd Csaba [mailto:csegyud(at)vnet(dot)hu]
Sent: Wednesday, June 08, 2005 4:31 PM
To: 'Tom Lane'
Subject: RE: [GENERAL] Where to find translation of Postgres error messages?

Ah, I see. OK. So there are two ways of mine:
1. to translate myself the whole stuff in my application :-/, or
2. leaving the back end messaeges in english.
At last in most cases the server messages hold information only for the
developers. I think I'll do the second.

Many thanks.

-- Csaba Együd

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Wednesday, June 08, 2005 3:52 PM
To: Együd Csaba
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Where to find translation of Postgres error messages?

=?iso-8859-2?Q?Egy=FCd_Csaba?= <csegyud(at)vnet(dot)hu> writes:
> I looked into Postgres installation directories and found several .mo
> files under the locale directory. But I wasn't able to find the string
> "no password supplied" for example in neither of them.

I think we deliberately don't localize that one because it'd break various
application-level code that relies on being able to recognize that string.
(Which is pretty yucky, of course, but until someone gets around to
implementing SQLSTATE error codes for libpq's internal error reports,
there's not a lot of choice.)

regards, tom lane

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.5 - Release Date: 2005.06.07.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.5 - Release Date: 2005.06.07.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.5 - Release Date: 2005.06.07.

Browse pgsql-general by date

  From Date Subject
Next Message Shelby Cain 2005-06-08 14:32:54 Re: To SPAM or not to SPAM...
Previous Message Michael Fuhr 2005-06-08 14:16:32 Re: return two elements