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

From: Peter T Mount <psqlhack(at)retep(dot)org(dot)uk>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: Vadim Mikheev <vadim(at)krs(dot)ru>, peter(at)maidstone(dot)gov(dot)uk, sferac(at)bo(dot)nettuno(dot)it, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] RE: [HACKERS] error messages not only English
Date: 1998-05-26 18:07:35
Message-ID: Pine.LNX.3.95.980526190532.1473C-100000@retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tue, 26 May 1998, Bruce Momjian wrote:

> >
> > Peter Mount wrote:
> > >
> > > That sounds like a good idea.
> > >
> > > How about having them stored in a new system table (say pg_errormsg) which
> > > contains each possible error in all the supported languages. That way, you
> > > can have multiple language support when users from different countries use
> > > the same server?
> >
> > Yes, this is nice. One note: server have to load from this table all messages
> > in a language requested by user when switching to this language - it's not
> > possible to read any table from elog() in most cases.
>
> Error messages in a system table. That is cool, and would be very easy
> to add/maintain. Would have to be loaded into C variables for use,
> however.

Why into C variables? You could have a function that returns the correct
string for the error code, and have it default if it can't access the
table.

--
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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 1998-05-26 18:18:14 Re: [GENERAL] RE: [HACKERS] error messages not only English
Previous Message Peter T Mount 1998-05-26 18:05:05 Re: [GENERAL] RE: [HACKERS] error messages not only English

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter T Mount 1998-05-26 18:10:31 Re: [HACKERS] error messages not only English
Previous Message Peter T Mount 1998-05-26 18:05:05 Re: [GENERAL] RE: [HACKERS] error messages not only English