Re: [GENERAL] RE: [HACKERS] error messages not only English - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [GENERAL] RE: [HACKERS] error messages not only English
Date
Msg-id 199805261609.MAA13242@candle.pha.pa.us
Whole thread Raw
In response to Re: [GENERAL] RE: [HACKERS] error messages not only English  (Vadim Mikheev <vadim@krs.ru>)
Responses Re: [GENERAL] RE: [HACKERS] error messages not only English
List pgsql-hackers
>
> 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.


--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: [GENERAL] error messages not only English
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] RE: [HACKERS] error messages not only English