Re: [GENERAL] RE: [HACKERS] error messages not only English

From: Peter T Mount <psqlhack(at)retep(dot)org(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] RE: [HACKERS] error messages not only English
Date: 1998-05-26 20:34:19
Message-ID: Pine.LNX.3.95.980526213055.3185A-100000@retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 26 May 1998, Tom Lane wrote:

> Peter T Mount <psqlhack(at)retep(dot)org(dot)uk> writes:
> > In libpq, this could be added to PQerrorMessage(). This could attempt to
> > get the native language error message from the DB, defaulting to either an
> > english one, or just the error code (it would be a bad problem in this
> > case).
>
> Um. libpq has its own error messages that it can generate --- the most
> obvious ones being those about "failed to connect to postmaster"
> and "lost connection to backend". How is it supposed to get a localized
> equivalent message from the server in cases like that?
>
> Bear in mind that libpq may be executing on a remote machine, so
> "have it read the error message file directly" is not a usable answer.

I'd think these would be ones where the current messages wouldn't be
translated, simply because translation is not possible at those points.

--
Peter T Mount peter(at)retep(dot)org(dot)uk or petermount(at)earthling(dot)net
Main Homepage: http://www.retep.org.uk
************ Someday I may rebuild this signature completely ;-) ************
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter(at)maidstone(dot)gov(dot)uk

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter T Mount 1998-05-26 21:00:23 Re: [HACKERS] error messages not only English
Previous Message Bruce Momjian 1998-05-26 20:24:25 Re: [HACKERS] Current sources?