Re: [GENERAL] error messages not only English

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Jose' Soares Da Silva" <sferac(at)bo(dot)nettuno(dot)it>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [GENERAL] error messages not only English
Date: 1998-05-22 14:45:10
Message-ID: Pine.BSF.3.96.980522104251.2816U-100000@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Fri, 22 May 1998, Bruce Momjian wrote:

> Added to TODO.
>
> >
> > Hi all,
> >
> > I see that PostgreSQL mainly gives error messages in English, I see also that
> > in some cases there's the possibility to configure it to give messages in
> > other languages like global.c that may be configured to give messages in
> > German.
> > MySQL gives the possibility to configure it using an external file containing
> > the messages by specifying it using the parameter LANGUAGE=<language>
> > where <language> is one of the following:
> >
> > czech
> > english
> > french
> > germany
> > italian
> > norwegian
> > norwegian-ny
> > polish
> > portuguese
> > spanish
> > swedish
> >
> > It will be great if we could have also this feature on PostreSQL.
> > I'm available to help on translation to Portuguese, Spanish and Italian.

Hrmmm...create an 'include/utils/errmsg.h file that is a link created by
configure based on a --with-language=<insert your language here>...the
file would contain:

#define <ERRMSG TOKEN> "Error message in your language"

Then use the TOKEN with elog...

If we did something like this, we wouldn't have to convert all at once
either, just as we pick up a new one...

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 1998-05-22 14:49:41 Re: [GENERAL] error messages not only English
Previous Message Bruce Momjian 1998-05-22 14:20:45 Re: [GENERAL] error messages not only English

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-05-22 14:48:29 Re: [HACKERS] Query cancel and OOB data
Previous Message Bruce Momjian 1998-05-22 14:24:20 Re: [HACKERS] sorting big tables :(