Re: translating exception messages of postgresql functions - Mailing list pgsql-admin

From Alvaro Herrera
Subject Re: translating exception messages of postgresql functions
Date
Msg-id 20080514153337.GI5521@alvh.no-ip.org
Whole thread Raw
In response to Re: translating exception messages of postgresql functions  (Julius Tuskenis <julius@nsoft.lt>)
Responses Re: translating exception messages of postgresql functions
List pgsql-admin
Julius Tuskenis wrote:

> I want to translate the exception message. For example I raise an
> exception in pg function like RAISE EXCEPTION 'my exception', then in my
> application that calls the function I catch the exception. But before I
> show it to the user of application I have to translate it. How do I know
> what exception it is? As Tom Lane answered - the only way is to rely on
> message text.

You want to translate it from english to another language, or you want
to change the nature of the message reported?  If you just want to
translate it to another language, see here:

http://pgtranslation.projects.postgresql.org/status.html

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-admin by date:

Previous
From: Julius Tuskenis
Date:
Subject: Re: translating exception messages of postgresql functions
Next
From: Julius Tuskenis
Date:
Subject: Re: translating exception messages of postgresql functions